Well, I realize that this type of "auto" layout is not trivial in the slightest. If I have a chance I may look into it. My first goal was to confirm that I wasn't missing some obvious solution in the command-line options.<br>
<br>The reason I'm using the alt- methods is because I want to get a zoomed in view of my data. The default methods would generate a scale from 10 to 20, which for my data basically become a flat line. For my use case, I'm very interested in seeing if the line is trending up or down. So for example, a difference of 0.05 +/- on the graph is important to be able to see.<br>
<br><div class="gmail_quote">On Wed, Jul 7, 2010 at 8:13 PM, Tobias Oetiker <span dir="ltr"><<a href="mailto:tobi@oetiker.ch">tobi@oetiker.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Casey,<br>
<br>
auto scaling is tough ... note that alt-y-grid and alt-autoscale<br>
are two independent 'fixes'. Used together, they can produce rather<br>
interesting results ... the two instances of 13 in the graph come<br>
from the fact that one of the two insist on putting at least two<br>
labels to the graph .. that they are both '13' is because the<br>
difference between the two is > 1<br>
<br>
I still claim that my original algorithm (the thing you get without<br>
the --alt* options when you just run rrdtool) is the most robust<br>
one ... :-) but, by all means, if you see ways to generically<br>
improve autoscaling, or add another alt-* algorithm, I would be<br>
most interested in your contributions !<br>
<br>
cheers<br>
tobi<br>
<div><div></div><div class="h5"><br>
Yesterday Casey McGinty wrote:<br>
<br>
> I sent this to the users list, but didn't get any response. The code below<br>
> creates some weirdness on the Y-axis. Can I just force rrdgraph to output<br>
> unit labels with 1 decimal place. Right now the graph gives me two labeled<br>
> lines, both are "13".<br>
><br>
> ---------- Forwarded message ----------<br>
> From: Casey McGinty <<a href="mailto:casey.mcginty@gmail.com">casey.mcginty@gmail.com</a>><br>
> Date: Tue, Jul 6, 2010 at 8:37 PM<br>
> Subject: Problems w/ Y-Axis Units<br>
> To: <a href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a><br>
><br>
><br>
> Hi,<br>
><br>
> Can someone show me how to get a better Y-axis on this graph? It would be<br>
> nice if it could indicate the first decimal value. I know --rigid will<br>
> adjust the range enough to fix it, but I like having a little padding on the<br>
> top and bottom. I'm running RRDtool 1.3.8<br>
><br>
> rrdtool create test.rrd \<br>
> --step 36000\<br>
> --start 1278216000\<br>
> DS:test:GAUGE:36000:U:U \<br>
> RRA:AVERAGE:0:1:450<br>
><br>
> rrdtool update test.rrd 1278216000:1.2995109312e+01<br>
> rrdtool update test.rrd 1278252000:1.2386894574e+01<br>
> rrdtool update test.rrd 1278288000:1.2756351457e+01<br>
> rrdtool update test.rrd 1278324000:1.2922753446e+01<br>
> rrdtool update test.rrd 1278360000:1.2355706091e+01<br>
> rrdtool update test.rrd 1278396000:1.3136786020e+01<br>
> rrdtool update test.rrd 1278432000:1.2281093692e+01<br>
> rrdtool update test.rrd 1278468000:1.2874299159e+01<br>
><br>
> rrdtool graph test.png --start 1262304000 --end 1278468000 \<br>
> --alt-autoscale \<br>
> --alt-y-grid \<br>
> --width 450 \<br>
> --height 125 \<br>
> DEF:test=test.rrd:test:AVERAGE \<br>
> LINE1:test#FF0000:test<br>
><br>
<br>
</div></div><font color="#888888">--<br>
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland<br>
<a href="http://it.oetiker.ch" target="_blank">http://it.oetiker.ch</a> <a href="mailto:tobi@oetiker.ch">tobi@oetiker.ch</a> ++41 62 775 9902 / sb: -9900<br>
</font></blockquote></div><br>