[rrd-users] Y-axis label
pmatil at gmail.com
Mon Nov 5 19:27:43 CET 2012
On 28.10.2012 17:40, Petteri Matilainen wrote:
>> 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.
> 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?
Any ideas? Is this a bug or is this just the way rrdtool works? Either
way, can it be fixed? If you need any more information about my scripts,
please ask. Thanks!
More information about the rrd-users