[rrd-users] Autoscaling y-axis max and min to same absolute value

Tobias Oetiker tobi at oetiker.ch
Wed Oct 8 21:17:07 CEST 2008


HKS,

the black box gets only drawn when there is a legend (or a bug in
your version of rrdtool).

cheers
tobi

Today (private) HKS wrote:

> Thank you, that's taken me in the right direction. When I add
> "LINE:<datasource>" to my graph definition, it doesn't actually change
> anything. Increasing the width (LINE1:<datasource>) draws the graph
> correctly with no visible line - but for each line I drew, a black box
> appears in the legend section of the graph. Is it possible to draw a
> line without a legend at all?
>
> Thanks again for the help.
>
> -HKS
>
>
> On Wed, Oct 8, 2008 at 2:39 PM, Simon Hobson <linux at thehobsons.co.uk> wrote:
> > Tobias Oetiker wrote:
> >
> >>  > I've got several traffic graphs that map inbound traffic to positive
> >>>  y-values and outbound traffic to negative y-values. I want the y-axis
> >>>  to continue autoscaling, but I would like the max and min values to
> >>>  scale at the same rate. In other words, abs(min) should always equal
> >>>  abs(max). Is this possible with rrdgraph?
> >>
> >>you could paint outbund traffic with the background color in the
> >>positive y axis and the other way round, then the graph will scale
> >>equally
> >
> > I had to think about that for a minute, it might not be clear to a new user.
> >
> > Just to clarify, you mean :
> >
> > Paint outbound traffic as positive using background colour
> > Paint inbound traffic as positive with inbound data colour
> >
> > Paint inbound traffic as negative using background colour
> > Paint outbound traffic as negative using outbound data colour
> >
> > Thus the Y axis will scale on the positive side to include the max
> > value of inbound or outbound traffic, and it will scale on the
> > negative side to include the min value of -ve inbound and -ve
> > outbound traffic. Painting the data with the background colour
> > doesn't draw anything visible, but it will cause the graph to
> > autoscale to include it.
> >
> > _______________________________________________
> > rrd-users mailing list
> > rrd-users at lists.oetiker.ch
> > https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
> >
>
> _______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
>
>

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900



More information about the rrd-users mailing list