[rrd-users] Re: Graph with two colors

Christopher Snell chris.snell at gmail.com
Thu Oct 21 01:43:46 MEST 2004


[note: this is in reply to a message posted before i rejoined the
list, so i apologize for my message not threading properly...]

Wengrzik, Andreas wrote:

>I have a Graph which is drawn by one value (cpuload)
>I draw an hrule greater than 50
>I select the values greater than 50 and draw them red, now i want
>to draw only the part of the value red which is above the hrule ?!
>Is this possible?

You may be interested in my color-graduated graph.  I posted the URL
for an example of this earlier today.  Here are the definitons.

Notes:
  This is for one value only.  I don't know how you would do more than
one value on the same graph using this method.  Also, my use of
"NoZero" CDEFs is misleading.  That should actually be "NoUnknown",
since that is what those CDEFs eliminate.  A quick-and-easy way of
doing the color gradiations is to fire up Photoshop or GIMP, make a
gradient, and use the eyedropper tool to sample color values at points
along the gradient.

DEF:in=weather.rrd:temp_in:AVERAGE
DEF:out=weather.rrd:temp_out:AVERAGE
CDEF:outl=out,120,LT,out,120,IF
CDEF:outlNoZero=out,UN,0,outl,IF
CDEF:outk=out,110,LT,out,110,IF
CDEF:outkNoZero=out,UN,0,outk,IF
CDEF:outj=out,100,LT,out,100,IF
CDEF:outjNoZero=out,UN,0,outj,IF
CDEF:outi=out,90,LT,out,90,IF
CDEF:outiNoZero=out,UN,0,outi,IF
CDEF:outh=out,80,LT,out,80,IF
CDEF:outhNoZero=out,UN,0,outh,IF
CDEF:outg=out,70,LT,out,70,IF
CDEF:outgNoZero=out,UN,0,outg,IF
CDEF:outf=out,60,LT,out,60,IF
CDEF:outfNoZero=out,UN,0,outf,IF
CDEF:oute=out,50,LT,out,50,IF
CDEF:outeNoZero=out,UN,0,oute,IF
CDEF:outd=out,40,LT,out,40,IF
CDEF:outdNoZero=out,UN,0,outd,IF
CDEF:outc=out,30,LT,out,30,IF
CDEF:outcNoZero=out,UN,0,outc,IF
CDEF:outb=out,20,LT,out,20,IF
CDEF:outbNoZero=out,UN,0,outb,IF
CDEF:outa=out,10,LT,out,10,IF
CDEF:outaNoZero=out,UN,0,outa,IF
AREA:outkNoZero#FF0000
AREA:outkNoZero#FF2800
AREA:outjNoZero#FF5F00
AREA:outiNoZero#FFA700
AREA:outhNoZero#F4CE01
AREA:outgNoZero#C0CD04
AREA:outfNoZero#8AC608
AREA:outeNoZero#3FAA0B
AREA:outdNoZero#13931E
AREA:outcNoZero#0B6641
AREA:outbNoZero#0B3A66
AREA:outaNoZero#0A019A
LINE2:out#000000:Outside Temperature

--
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