[rrd-users] Re: Logarithmic scale labels

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Thu May 3 16:11:47 MEST 2001


Antoine Delvaux wrote:

> Le 2001.05.03 00:27, Alex van den Bogaerdt a écrit :
> > 
> > I don't think there is.  Maybe this is A Good Thing, how would you like
> > a scale such as:
> > 
> > [snip]

> Yes in your case it's not very practical, sure.  But in my application I'm
> dealing with scales like these ones :
> 1000      1e+03
>  100      1e+02
>   10      1e+01
>    1      1e+00
> 
> And I'd prefer to have the first one instead of the second, it's easier to
> read.  Don't you think it could be a useful feature of RRDtool to be able
> to chose one of these two types of scale ?

Agreed, if you know in advance that the values will be low, it would be
an option to have the first form.  And yes, I think it could be a useful
feature (in fact I already suggested it on rrd-developers).  The problem
is that it isn't easy to implement it the right way.

I'm sure it will eventually be included in the newer releases of RRDtool
but it could take "some" time to do so.  In the mean time, if you need
it *now*, I think you should hack this up yourself in rrd_graph.c
You don't need it to be done the proper way, you already know it will
be low values so you don't need any checks and such.

You could probably get good results by hacking rrd_graph.c, function
horizontal_log_grid, bottom part "paint major grid and labels"

cheers,
-- 
   __________________________________________________________________
 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| Technical questions sent directly to me will be nuked. Use the list. | 
+----------------------------------------------------------------------+
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |
+----------------------------------------------------------------------+

--
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://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list