[rrd-users] Re: Base for AREA plots
Alex van den Bogaerdt
alex at ergens.op.het.net
Thu Oct 21 10:10:04 MEST 2004
On Thu, Oct 21, 2004 at 02:14:32AM -0500, Christopher Snell wrote:
> I think my solution (posted in another thread) has the same problem:
> values less than 0 will draw from 0 downwards instead of -20 upwards.
>
> This RPN is burning my brain--it almost seems like it would be easier
> to patch RRDtool to enable alternate baselines, than to figure out the
> RPN required to do this. :(
Start with
DEF:temperature= ...
CDEF:minus20=temperature,POP,-20
AREA:minus20
STACK:temperature#color:legend
and remove any errors I made.
The "CDEF" statement uses "temperature,POP" to get an empty stack
but with a time/resolution component. Then it pushes the number
-20 on this stack and ends. This results in a constant of -20.
Next, AREA is used without a color; this results in a transparent
area. On top of this invisible area, temperature is placed.
HTH
Alex
--
You want an answer? You'd better follow the following guidelines!
Linesize well below 80 chars. Reply to the list, not to me. Trim
irrelevant lines. Reply _below_ the relevant lines, not on top.
--
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