Well, I realize that this type of &quot;auto&quot; 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&#39;t missing some obvious solution in the command-line options.<br>

<br>The reason I&#39;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&#39;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">&lt;<a href="mailto:tobi@oetiker.ch">tobi@oetiker.ch</a>&gt;</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 &#39;fixes&#39;. 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 &#39;13&#39; is because the<br>
difference between the two is &gt; 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>
&gt; I sent this to the users list, but didn&#39;t get any response. The code below<br>
&gt; creates some weirdness on the Y-axis. Can I just force rrdgraph to output<br>
&gt; unit labels with 1 decimal place. Right now the graph gives me two labeled<br>
&gt; lines, both are &quot;13&quot;.<br>
&gt;<br>
&gt; ---------- Forwarded message ----------<br>
&gt; From: Casey McGinty &lt;<a href="mailto:casey.mcginty@gmail.com">casey.mcginty@gmail.com</a>&gt;<br>
&gt; Date: Tue, Jul 6, 2010 at 8:37 PM<br>
&gt; Subject: Problems w/ Y-Axis Units<br>
&gt; To: <a href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a><br>
&gt;<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; Can someone show me how to get a better Y-axis on this graph? It would be<br>
&gt; nice if it could indicate the first decimal value. I know --rigid will<br>
&gt; adjust the range enough to fix it, but I like having a little padding on the<br>
&gt; top and bottom. I&#39;m running RRDtool 1.3.8<br>
&gt;<br>
&gt; rrdtool create test.rrd \<br>
&gt;    --step 36000\<br>
&gt;    --start 1278216000\<br>
&gt;    DS:test:GAUGE:36000:U:U \<br>
&gt;    RRA:AVERAGE:0:1:450<br>
&gt;<br>
&gt; rrdtool update test.rrd 1278216000:1.2995109312e+01<br>
&gt; rrdtool update test.rrd 1278252000:1.2386894574e+01<br>
&gt; rrdtool update test.rrd 1278288000:1.2756351457e+01<br>
&gt; rrdtool update test.rrd 1278324000:1.2922753446e+01<br>
&gt; rrdtool update test.rrd 1278360000:1.2355706091e+01<br>
&gt; rrdtool update test.rrd 1278396000:1.3136786020e+01<br>
&gt; rrdtool update test.rrd 1278432000:1.2281093692e+01<br>
&gt; rrdtool update test.rrd 1278468000:1.2874299159e+01<br>
&gt;<br>
&gt; rrdtool graph test.png --start 1262304000 --end 1278468000 \<br>
&gt;         --alt-autoscale \<br>
&gt;         --alt-y-grid \<br>
&gt;         --width 450 \<br>
&gt;         --height 125 \<br>
&gt;         DEF:test=test.rrd:test:AVERAGE \<br>
&gt;         LINE1:test#FF0000:test<br>
&gt;<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>