[rrd-users] line wrap for at the legend

Marc Marc at Tobien.net
Fri Mar 11 13:45:41 CET 2011


Hi

I am having a problem to get a line wrap for at the legend of my graph. 

The graph is automatic generated  and I want to have one line for each value
of name, min, max and last value. 

Now the tool is writing the legend until the line is full . So it may happen
that I have 1,5 Line of legend below my graph. This is looking ridicules.

 

/usr/bin/rrdtool graph /var/www/graph2.png --start 1299625200 --end
start+1day 

 

DEF:1=/var/rrd/data/B6000801CA34E0.rrd:tmp:AVERAGE 

LINE1:1#0000ff:"UV-NAS" 

GPRINT:1:LAST:"Aktuell.\: %3.1lf %SC" 

DEF:max1=/var/rrd/data/B6000801CA34E0.rrd:tmp:MAX 

DEF:min1=/var/rrd/data/B6000801CA34E0.rrd:tmp:MIN 

VDEF:vlinemin1=min1,MINIMUM 

VDEF:vlinemax1=max1,MAXIMUM 

GPRINT:max1:MAX:"Maximum.\: %3.1lf %SC" 

GPRINT:min1:MIN:"Minimum.\: %3.1lf %SC" 

LINE1:vlinemax1#FF0000 

LINE1:vlinemin1#48d1cc

DEF:2=/var/rrd/data/3D00080200F655.rrd:tmp:AVERAGE 

LINE1:2#0000ff:"UV-SPS" 

GPRINT:2:LAST:"Aktuell.\: %3.1lf %SC" 

DEF:max2=/var/rrd/data/3D00080200F655.rrd:tmp:MAX 

DEF:min2=/var/rrd/data/3D00080200F655.rrd:tmp:MIN 

VDEF:vlinemin2=min2,MINIMUM 

VDEF:vlinemax2=max2,MAXIMUM 

GPRINT:max2:MAX:"Maximum.\: %3.1lf %SC" 

GPRINT:min2:MIN:"Minimum.\: %3.1lf %SC"

LINE1:vlinemax2#FF0010 

LINE1:vlinemin2#48d1dd

-h 300 -w 600 -y1:2 --color GRID#dddddd --color MGRID#aaaaaa " 

 

 


Grüße/Regads

Marc Tobien

image004      

   

 

Marc Tobien 

( Direct: +49 4202 71079 |image005   Mobile: +49 15142231047  |  image006
Email:  <mailto:Marc.Tobien at eds.com> Marc at Tobien.net 

This e-mail (and any accompanying files or documents) may contain
information that is confidential, privileged or otherwise protected from
disclosure.  If you are not an intended recipient of this e-mail, do not
review, duplicate or redistribute it by any means.  Please delete it and any
attachments and notify the sender that you have received it in error.
Unintended recipients are prohibited from taking action on the basis of
information in this e-mail.

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20110311/6bf0e19b/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/octet-stream
Size: 1542 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/rrd-users/attachments/20110311/6bf0e19b/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/octet-stream
Size: 1054 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/rrd-users/attachments/20110311/6bf0e19b/attachment-0001.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/octet-stream
Size: 972 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/rrd-users/attachments/20110311/6bf0e19b/attachment-0002.obj 


More information about the rrd-users mailing list