summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 33f47e4)
raw | patch | inline | side by side (parent: 33f47e4)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 20 Jun 2005 09:15:10 +0000 (09:15 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 20 Jun 2005 09:15:10 +0000 (09:15 +0000) |
alt-y-grid labels without fractionals should have no fractionals when printed
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@645 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@645 a5681a0c-68f1-0310-ab6d-d61299d08faa
program/src/rrd_graph.c | patch | blob | history |
index c9411e25f6f3555daaddbea6f19f2bd6230714f9..0572241cd2b37357c584efb13a047b0c8b196554 100644 (file)
--- a/program/src/rrd_graph.c
+++ b/program/src/rrd_graph.c
} else {
int len = decimals + 1;
if (im->unitslength < len+2) im->unitslength = len+2;
- sprintf(im->ygrid_scale.labfmt, "%%%d.1f%s", len, ( im->symbol != ' ' ? " %c" : "" ));
+ sprintf(im->ygrid_scale.labfmt, "%%%d.0f%s", len, ( im->symbol != ' ' ? " %c" : "" ));
}
}
else {
# error "your libc has no strftime I guess we'll abort the exercise here."
#endif
gfx_new_text ( im->canvas,
- xtr(im,tilab), Y0+im->text_prop[TEXT_PROP_AXIS].size,
+ xtr(im,tilab), Y0+im->text_prop[TEXT_PROP_AXIS].size*1.4+5,
im->graph_col[GRC_FONT],
im->text_prop[TEXT_PROP_AXIS].font,
im->text_prop[TEXT_PROP_AXIS].size,
- im->tabwidth, 0.0, GFX_H_CENTER, GFX_V_TOP,
+ im->tabwidth, 0.0, GFX_H_CENTER, GFX_V_BOTTOM,
graph_label );
}