[rrd-developers] Upside down vertical labels
Chris Turbeville
turbo at verio.net
Sat Aug 30 00:09:42 MEST 2003
I don't know if this is a bug or a feature but if you want your vertical
labels to read top to bottom as opposed to bottom to top you can do
this:
Index: program/src/rrd_graph.c
===================================================================
RCS file: /usr/cvs/rrdtool/program/src/rrd_graph.c,v
retrieving revision 1.59
diff -U3 -r1.59 rrd_graph.c
--- program/src/rrd_graph.c 16 Jul 2003 23:41:37 -0000 1.59
+++ program/src/rrd_graph.c 29 Aug 2003 22:07:24 -0000
@@ -1905,7 +1905,7 @@
for (n=0;n<strlen(im->ylegend);n++) {
s[0]=im->ylegend[n];
s[1]='\0';
- gfx_new_text(im->canvas,7,im->text_prop[TEXT_PROP_AXIS].size*(l-n),
+ gfx_new_text(im->canvas,7,im->text_prop[TEXT_PROP_AXIS].size*(n+1),
im->graph_col[GRC_FONT],
im->text_prop[TEXT_PROP_AXIS].font,
im->text_prop[TEXT_PROP_AXIS].size, im->tabwidth, 270.0,
-Chris
--
cturbeville at verio.net Chris Turbeville NTT/VERIO
Send mail with subject "send PGP Key" for PGP 6.5.2 Public key
--
Unsubscribe mailto:rrd-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-developers-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-developers
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-developers
mailing list