[rrd-users] Re: More GPRINT & legend questions!
Alan Lodge
alan.lodge at sms-internet.net
Fri Feb 7 18:20:58 MET 2003
You would use %2.2lf
eg:
"GPRINT:Temperature:MIN:Minimum Temperature "%%2.2lf\n
Regards
Alan Lodge
AL7151-RIPE
Senior Technical Operator
Satellite Media Services
Lawford Heath Earth Station, Lawford Heath, Rugby CV23 9EU, United Kingdom
t +44 1788 523030
f +44 1788 523031
e alan.lodge at sms-internet.net
w www.sms-internet.net
This email is intended only for the above named addressee(s). The
information contained in this email may contain information which is
confidential. If you received this email and you are not a named addressee
please delete it from your system and contact Satellite Media Services on
+44 1788 523000.
This email does not constitute a legal offer. Any commercial or technical
information, however inferred, is subject to change and Satellite Media
Services does not support the validity of such information provided.
> -----Original Message-----
> From: rrd-users-bounce at list.ee.ethz.ch
> [mailto:rrd-users-bounce at list.ee.ethz.ch]On Behalf Of Brander, Eric
> Sent: Friday, February 07, 2003 4:46 PM
> To: rrd-users at list.ee.ethz.ch
> Subject: [rrd-users] More GPRINT & legend questions!
>
>
> Thanks for all the helpful suggestions everyone! I'm finally getting
> somewhere!
>
> One more formatting question. I have a lot of trailing 0's in my legend.
> Is there an easy way to tell the GPRINT line to use say only 1 decimal
> place? Also, my gprint lines just happen to line up real nice because of
> their size, but how can I give them an absolute location?
> 14all.cgi seems to
> do this, justifying the legend and spacing the items out so they are
> aesthetically pleasing.
>
> Here's what I use to make the graph:
> rrdtool graph weather.gif --title "Weather RRD Graphing Test" \
> --lazy --width 600 DEF:Humidity=weather.rrd:Humidity:AVERAGE \
> DEF:Temperature=weather.rrd:Temperature:AVERAGE \
> AREA:Humidity#0000AA:"Humidity" \
> AREA:Temperature#FF0000:"Temperature\n" \
> "GPRINT:Humidity:MAX:Maximum Humidity "%%lf \
> "GPRINT:Temperature:MAX:Maximum Temperature "%%lf\n \
> "GPRINT:Humidity:MIN:Minimum Humidity "%%lf \
> "GPRINT:Temperature:MIN:Minimum Temperature "%%lf\n \
> "GPRINT:Humidity:AVERAGE:Average Humidity "%%lf \
> "GPRINT:Temperature:AVERAGE:Average Temperature "%%lf\n \
> "GPRINT:Humidity:LAST:Current Humidity "%%lf \
> "GPRINT:Temperature:LAST:Current Temperature "%%lf\n
>
> Which produces the attached graph.
>
> Thanks again for all the help!
>
> Eric Brander
> ACS
> Texas CHIP Account
> Sr. Communications Engineer - Information Systems Department
> 512.336.3331
> Eric dot Brander at acs-inc dot com
>
>
>
>
> -- Attached file removed by Ecartis and put at URL below --
> -- Type: image/gif
> -- Size: 25k (25908 bytes)
> -- URL : http://www.ee.ethz.ch/~slist/pantomime/02-weather.gif
>
>
> --
> Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
> Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
> Archive http://www.ee.ethz.ch/~slist/rrd-users
> WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
>
>
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-users
mailing list