summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8eb8eff)
raw | patch | inline | side by side (parent: 8eb8eff)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 6 May 2005 23:00:53 +0000 (23:00 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 6 May 2005 23:00:53 +0000 (23:00 +0000) |
* in riggid mode, cut data and 'min' and 'max' not two above
* gibt ytop0 a default value
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@493 a5681a0c-68f1-0310-ab6d-d61299d08faa
* gibt ytop0 a default value
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@493 a5681a0c-68f1-0310-ab6d-d61299d08faa
program/src/rrd_graph.c | patch | blob | history |
index 597abafc22b020fdb990d1ae268fd0995b824ad8..cbf947dc1ac631182171adeebb09d37d5538e763 100644 (file)
--- a/program/src/rrd_graph.c
+++ b/program/src/rrd_graph.c
if (! im->rigid) {
/* keep yval as-is */
} else if (yval > im->yorigin) {
- yval = im->yorigin+2;
+ yval = im->yorigin;
} else if (yval < im->yorigin - im->ysize){
- yval = im->yorigin - im->ysize - 2;
+ yval = im->yorigin - im->ysize;
}
return yval;
}
} else {
res = draw_horizontal_grid(im);
}
-
+
/* dont draw horizontal grid if there is no min and max val */
if (! res ) {
char *nodata = "No Data found";
im->text_prop[TEXT_PROP_TITLE].size, im->tabwidth, 0.0,
GFX_H_CENTER, GFX_V_CENTER,
im->title);
+ /* rrdtool 'logo' */
+ gfx_new_text( im->canvas,
+ im->ximg-7, 7,
+ 0xbfbfbfff,
+ im->text_prop[TEXT_PROP_AXIS].font,
+ 5, im->tabwidth, 270,
+ GFX_H_RIGHT, GFX_V_TOP,
+ "RRDTOOL / TOBI OETIKER");
/* graph labels */
if( !(im->extra_flags & NOLEGEND) & !(im->extra_flags & ONLY_GRAPH) ) {
}
} else {
- float ybase0 = DNAN,ytop0;
+ float 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 */