summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 50ed334)
raw | patch | inline | side by side (parent: 50ed334)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 12 May 2005 08:38:53 +0000 (08:38 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 12 May 2005 08:38:53 +0000 (08:38 +0000) |
and do not exhibit white lines when touching each other.
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@546 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@546 a5681a0c-68f1-0310-ab6d-d61299d08faa
program/src/rrd_graph.c | patch | blob | history |
index 8162bbfc79f74bf5866f385a17a262004be0273c..3a39ae240c804e12665f2f33b8154aff1bf1a073 100644 (file)
--- a/program/src/rrd_graph.c
+++ b/program/src/rrd_graph.c
}
} else {
- float ybase0 = DNAN,ytop0=DNAN;
+ double ybase0 = DNAN,ytop0=DNAN;
for(ii=0;ii<im->xsize;ii++){
/* keep things simple for now, just draw these bars
do not try to build a big and complex area */
- float ybase,ytop;
+ double ybase,ytop;
if ( im->slopemode == 0 && ii==0){
continue;
}
/* every area has to be wound clock-wise,
so we have to make sur base remains base */
if (ybase > ytop){
- float extra = ytop;
+ double extra = ytop;
ytop = ybase;
ybase = extra;
}
}
if ( !isnan(ybase0) ){
node = gfx_new_area(im->canvas,
- ii-1+im->xorigin,ybase0,
- ii-1+im->xorigin,ytop0,
- ii+im->xorigin,ytop,
+ (double)ii-1.1+(double)im->xorigin,ybase0-0.1,
+ (double)ii-1.1+(double)im->xorigin,ytop0+0.1,
+ (double)ii+0.1+(double)im->xorigin,ytop+0.1,
im->gdes[i].col
);
gfx_add_point(node,
- ii+im->xorigin,ybase
+ (double)ii+0.01+im->xorigin,ybase-0.1
);
}
ybase0=ybase;