[rrd-users] Y-axis label is sometimes 1.0 instead of 1

Petteri Matilainen pmatil at gmail.com
Sun Oct 28 16:40:46 CET 2012


> Hello all,
>
> I'm graphing temperature (gauge). I have placed Y labels with the -y 0.5:2 parameter which gives me major grid lines every degree and minor grid lines ever half a degree. Labels are at every degree so they should always be exactly an even degree. I also use alt-autoscale.
>
> But sometimes if I have eg. an y-range of -3 to +4 degrees the Y label is 0.0, 1.0, 2.0 and so on. I have also another graph (same rrdgraph script) for inside temperature and the values are fine: 25, 26 and so on. Why does rrdtool put 1.0, 2.0 and so on when the values (range?) is small enough? Can this be forced somehow to always display an integer instead of float? Thanks! Oh, and I'm using rrdtool 1.4.7.
>
> regards,
>
> Petteri


Replying to myself again but I made some tests. If the y-axis label 
parameter -y has 1 (unit, degrees C in my case) or less as the number of 
grid lines the values are 0.0, 1.0, 2.0 etc. Eg. -y 1:x. If I use -y 2:x 
then the values are 0, 1, 2 etc. Is it supposed to work this way?

regards,

Petteri



More information about the rrd-users mailing list