[rrd-users] RRD Legend formatting problem

Steve Shipway s.shipway at auckland.ac.nz
Fri Sep 6 02:34:39 CEST 2013


> Below is my RRDgraph code and a link to what the legend looks like.  If the
> problem isn't clear, I
...
>     "COMMENT:        ",
>     "COMMENT:LAST    ",
>     "COMMENT:MAX     \l",
>     "AREA:a#00C000:auth",
>     "GPRINT:a:LAST:%2.0lf %S",
>     "GPRINT:aa:MAX:%2.0lf %S\l",
>     "AREA:g#00C0FF:guest:STACK",
>     "GPRINT:g:LAST:%2.0lf %S",
>     "GPRINT:gg:MAX:%2.0lf %S\l",

It looks like you may not be escaping the backstroke.  I'm guessing you're using Perl, and with a double-quoted string, you'll need to escape the backstroke like this:

     "COMMENT:        ",
     "COMMENT:LAST    ",
     "COMMENT:MAX     \\l",
     "AREA:a#00C000:auth",
     "GPRINT:a:LAST:%2.0lf %S",
     "GPRINT:aa:MAX:%2.0lf %S\\l",
     "AREA:g#00C0FF:guest:STACK",
     "GPRINT:g:LAST:%2.0lf %S",
     "GPRINT:gg:MAX:%2.0lf %S\\l",

This should fix your problem.  

Steve


Steve Shipway
ITS Unix Services Design Lead
University of Auckland, New Zealand
Floor 1, 58 Symonds Street, Auckland
Phone: +64 (0)9 3737599 ext 86487
DDI: +64 (0)9 923 6487
Mobile: +64 (0)21 753 189
Email: s.shipway at auckland.ac.nz
 Please consider the environment before printing this e-mail : 打印本邮件,将减少一棵树存活的机会


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5900 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/rrd-users/attachments/20130906/51116869/attachment.bin 


More information about the rrd-users mailing list