[rrd-users] y-axis label decimals

Lloyd A. Stevens lloyd at boxisp.net
Sat May 14 04:41:30 CEST 2011


I have read some others posts and I think that I might be trying to do
something that is not possible.

I am trying to get better resolution on the Y-axis label values.  I have
tried numerous combinations of:
--alt-y-grid \
--units-length 4 \
--upper-limit 35 \
--lower-limit 33 \
--rigid \
--y-grid 0.1:1 \

and still do not get the desired result.

I would like to see y-axis labels (starting from the top):
35.9 35.8 35.7 ... 34.2 34.1 34.0

What I get is either:
35 35 35 ... 34 34 34 
Or 
35                       34 

I have included scripts to duplicate what I am seeing.
# to Create the database
rrdtool create test.rrd  --start 1305179879 --step 60 \
        DS:First:GAUGE:90:U:U \
        DS:Second:GAUGE:90:U:U \
        DS:Third:GAUGE:90:U:U \
        DS:Fourth:GAUGE:90:U:U \
        RRA:LAST:0.5:1:500000

# to add sample data
rrdtool update test.rrd 1305179821:1498.90:34.53:1770.00:712.00
rrdtool update test.rrd 1305179880:1500.20:34.61:1770.00:712.00
rrdtool update test.rrd 1305179941:1499.30:34.61:1772.00:713.00
rrdtool update test.rrd 1305180001:1498.00:34.50:1770.00:713.00
rrdtool update test.rrd 1305180061:1498.00:34.41:1767.00:713.00
rrdtool update test.rrd 1305180121:1497.30:34.19:1767.00:713.00
rrdtool update test.rrd 1305180181:1497.30:34.23:1770.00:713.00
rrdtool update test.rrd 1305180240:1497.90:34.27:1771.00:713.00
rrdtool update test.rrd 1305180301:1498.10:34.31:1771.00:713.00
rrdtool update test.rrd 1305180361:1497.80:34.25:1771.00:713.00
rrdtool update test.rrd 1305180420:1498.20:34.27:1771.00:713.00
rrdtool update test.rrd 1305180481:1497.00:34.13:1771.00:713.00
rrdtool update test.rrd 1305180541:1495.50:33.97:1772.00:712.00
rrdtool update test.rrd 1305180600:1495.40:33.93:1767.00:712.00
rrdtool update test.rrd 1305180661:1495.50:34.02:1769.00:713.00
rrdtool update test.rrd 1305180721:1495.90:34.02:1769.00:711.00
rrdtool update test.rrd 1305180781:1496.90:34.17:1770.00:713.00
rrdtool update test.rrd 1305180841:1496.70:34.16:1770.00:712.00
rrdtool update test.rrd 1305180900:1497.00:33.98:1769.00:713.00

# to create graph
rrdtool graph 'graph.png' \
--title 'Top' \
--vertical-label 'Vertical' \
--full-size-mode \
--start 1305179880 \
--end 1305182461 \
--height '500' \
--slope-mode \
--upper-limit 35 \
--lower-limit 33 \
--rigid \
--y-grid 0.1:1 \
--units-length 6 \
'DEF:Two=test.rrd:Second:LAST' \
'LINE2:Two#0000FF'


Actually I would like to have the y-axis labels:
35.90 35.80 35.70 ... 34.20 34.10 34.00
Since this is for US currency, but I will settle for
35.9	35.8  35.7  ... 34.2  34.1  34.0

The second graph in the gallery at
http://oss.oetiker.ch/rrdtool/gallery/index.en.html
has y-axis labels 3.0 M 2.0 M 1.0 M ... so I believe that decimal labels are
possible (admittedly all labels I have seen have "0" after the decimal
point)




-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the rrd-users mailing list