[rrd-users] Changing Negative Y-Axis Labels to Positive

Chris Mason chris at noodles.org.uk
Fri Dec 9 16:33:04 CET 2011


Hi,

I have seen this question pop up a couple of times before, but most of
the posts were quite a few years ago and I am hoping that something
has changed since then.
I am plotting interface statistics with ifInOctets as positive and
ifOutOctets as negative so they don't overlap. This works perfectly,
except the Y-Axis labelling shows negative values (as you would
expect) for ifInOctets.

Is there anyway to change the labelling for the Y-Axis (i.e. run it
through the abs() function before printing) at graph creation to have
positive values?

If it isn't possible would a feature patch to show negative Y-Axis
labels as positive (maybe a flag to rrdtool) be welcomed?

Thanks,
Chris



More information about the rrd-users mailing list