[rrd-users] Re: [rrdgraph] Y labels

Denis Barbier barbier at imacs.polytechnique.fr
Mon Jan 31 17:22:35 MET 2000


On Wed, 26 Jan 2000, Tobias Oetiker wrote:

> Today you sent me mail regarding [rrd-users] [rrdgraph] Y labels:
> 
> *> Hi Tobias and all,
> *> 
> *> i am learning RRDtool with a simple example, showing CPU load. It works
> *> very nice, but i failed changing Y labels. Instead of ``500m'',
> *> ``1000m'', etc. i prefer 0.5, 1.0, etc.
> *> Is it possible?
> *> It could be done by specifying a sprintf format as third argument of
> *> --y-grid.
> 
> patches are welcome. two conditions
> 
> *) existing apps must not break
> 
> *) for configurable y axis labels we need more flexibility not only sprintf
>    but probably also a magnitude scaling factor ...
> 
> If you have an idea how to implement this please float it on the list first

There is a third condition: a smart UI.
The simplest is to adopt the same mechanism as with --x-grid, i.e.
  GVA:GST:MVA:MST:LVA:LST:LPR:FMT
(where VA stands for VAlue, where you wrote ``amount of time''
for x-grid).
Empty values may refer to some defaults, e.g.
  :::::::%4.1f
will solve my initial problem.

For backward compatibility, you have to check how many colons are
contained in this argument, and switch to old- or new-style grids.

Note that i do not understand what PR stand for, and many other things,
so forgive me if i am fully wrong. 

Regards

Denis

--
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



More information about the rrd-users mailing list