[rrd-users] Re: Plot a dotted line

Alex van den Bogaerdt alex at ergens.op.het.net
Fri Nov 18 15:22:09 MET 2005


On Fri, Nov 18, 2005 at 02:52:13PM +0100, Simone Morandini wrote:

> is there a way to display a dotted line on a graph? I have to display an
> estimated value, so I thought a dotted line would be better...

Sure.

Take one of the CDEF examples, adapt it to your needs.

You want an intermittent on/off pattern, so you need to find
a CDEF that alternates between UNKN and your value.

The necessary CDEF will depend on the amount of time in your
graph.  For instance: if the graph displays 400 hours, you could
display that value for each odd hour and NaN for each even hour.

something like (untested!):
CDEF:dotted=TIME,3600,/,2,%,value,UNKN,IF

-- 
Alex van den Bogaerdt
http://www.vandenbogaerdt.nl/rrdtool/

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