[rrd-developers] Re: Strange Y labels in 1.2.9 with --alt-autoscale

Kai Risku Kai.Risku at arrak.fi
Sun Jun 12 09:39:34 MEST 2005


Hmm.. it seems like I forgot to mention that I actually am using the --alt-y-grid mode.
Without it, the labels work rather well, but the Y-range is not good enough.

I tried changing the sprintf format-strings in draw_horizontal_grid to %7.4f, and
then I actually saw how off the Y-gridlines where. I currently get the following
Y-grid labels: 68.732 G, 68.825 G, 68.918 G, 69.011 G, 69.104 G, 69.197 G.

So there is definitely something fishy going on here..

Regards,
    Kai

----- Original Message ----- 
From: "Tobias Oetiker" <oetiker at ee.ethz.ch>
To: "Kai Risku" <Kai.Risku at arrak.fi>
Cc: <rrd-developers at list.ee.ethz.ch>
Sent: Saturday, June 11, 2005 22:29
Subject: [rrd-developers] Re: Strange Y labels in 1.2.9 with --alt-autoscale


Hi Kay,

please try

--alt-y-grid mode ... this is for situations like this ...

cheers
tobi
Yesterday Kai Risku wrote:

> After upgrading to version 1.2.9 I noticed some strange behavior in the
> Y-labels. I have a database with the amount of free diskspace, and plot
> it as number of bytes with base 1024. The graph correctly converts the
> bytes to Gigabytes, but the Y labels unfortunately lack the precision I
> earlier saw in version 1.0.x, when the change in diskspace is rather
> small.
>
> If I plot over an interval when the free diskspace has varied, e.g.,
> between 69.99 Gb and 70.41 Gb, I get five Y-labels all saying "70 G". It
> also looks like the Y-labels are not properly aligned to even numbers,
> but are placed at a completely random offset.
>
> Looking at the code in rrd_graph.c did not immediately explain this
> behavior, as the logic involved seemed rather complex...
>
> Anyone have some further insight into this, and perhaps a fix?
>
> --
> Kai.Risku at arrak.fi     GSM  +358-40-767 8282
> Oy Arrak Software Ab   http://www.arrak.fi
>
>
> --
> Unsubscribe mailto:rrd-developers-request at list.ee.ethz.ch?subject=unsubscribe
> Help        mailto:rrd-developers-request at list.ee.ethz.ch?subject=help
> Archive     http://lists.ee.ethz.ch/rrd-developers
> WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi
>

-- 
 ______    __   _
/_  __/_  / /  (_) Oetiker @ ISG.EE, ETL F24.2, ETH, CH-8092 Zurich
 / // _ \/ _ \/ /  System Manager, Time Lord, Coder, Designer, Coach
/_/ \.__/_.__/_/   http://people.ee.ethz.ch/oetiker +41(0)44-632-5286

--
Unsubscribe mailto:rrd-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-developers-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/rrd-developers
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi


--
Unsubscribe mailto:rrd-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-developers-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/rrd-developers
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-developers mailing list