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

Tobias Oetiker tobi at oetiker.ch
Fri Dec 9 23:35:42 CET 2011

Hi Chris,

Today Chris Mason wrote:

> 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?

a patch would be welcome, yes :-)

Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900

More information about the rrd-users mailing list