[rrd-users] Re: plot positive and negative in different colours

Dave Holland dh3 at sanger.ac.uk
Tue Oct 31 16:25:31 MET 2006

On Tue, Oct 31, 2006 at 11:21:06AM +0100, Alex van den Bogaerdt wrote:
> > How can I get a single line plotted which changes colour appropriately?
> Try plotting 'x' in one color, and overlapping part of it with the
> other color (e.g. plot LINE1:x#0000ff LINE2:n#ff0000)

Thank you - that's clever. I now have

  rrdtool graph out.png DEF:x=foo.rrd:data:LAST CDEF:p=x,0,GE,x,UNKN,IF
  LINE2:x#ff0000 LINE2:p#0000ff

which gets me http://eyas.biff.org.uk/~dave/test5.png

I'd still prefer the line crossing zero to be red below zero and blue
above, but I guess that's a little picky. :-) Any offers? Not to worry
if it can't be done.

Thanks for your help.

** Dave Holland ** Systems Support -- Special Projects Team **
** 01223 496923 ** Sanger Institute, Hinxton, Cambridge, UK **

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://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi

More information about the rrd-users mailing list