[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rrd-users
Subject:    [rrd-users] Re: Base for AREA plots
From:       alex () ergens ! op ! het ! net (Alex van den Bogaerdt)
Date:       2004-10-21 8:10:04
Message-ID: 20041021081004.GA14142 () slot ! hollandcasino ! net
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic