I'm graphing data that has many too elements to display sensibly by graphing them all. Therefore I'm shading between min & max, and graphing the average over the top. Actually, I'm using AREA to graph from 0 - max in grey, then another area to graph from 0 - min in white, but the effect is the same. There is an example here: http://www.pcorp.com.au/images/rrd/example1.png
This is fine for data thats positive. Recently I fixed a bug that ignored all negative data (after all, its not a number if it doesn't start with 0-9 right? :) and added some new trends that are legitimately mostly negative. The problem being AREA fills between 0 and value... It seems that my minimum shade is 'overwriting' the maximum (for negative values), and I'm getting weird results: http://www.pcorp.com.au/images/rrd/example2.png Can anyone suggest a 'simple' way of overcoming this that would work for data that is both positive and negative? The only way I can think of is using another CDEF and doing another (shudder) RPN to test the value for its sign, and then draw max or min first depending on the outcome... Maybe I could use AREA. This is (roughly) the commands that create the graphs: DEF:d2Fed2Pact=../rrd/test.rrd:Fed2Pact:MAX AREA:d2Fed2Pact#cccccc DEF:d3Fed2Pact=../rrd/test.rrd:Fed2Pact:MIN AREA:d3Fed2Pact#ffffff DEF:d1Fed2Pact=../rrd/test.rrd:Fed2Pact:AVERAGE CDEF:c1Fed2Pact=d1Fed2Pact,UN,PREV,d1Fed2Pact,IF LINE2:c1Fed2Pact#0000ff:Fed2Pact Many many thanks in advance! -- Iain Buchanan <[EMAIL PROTECTED]> "You are welcome to your opinion. I've got this great bridge to sell you too." - Alan Cox to someone recommending the NVidia drivers -- Attached file removed by Ecartis and put at URL below -- -- Type: application/pgp-signature -- Desc: This is a digitally signed message part -- Size: 190 bytes -- URL : http://www.ee.ethz.ch/~slist/pantomime/40-signature.asc -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi