[rrd-developers] [PATCH] docs: fix typo in rrdgraph manpage; Spell out RPN for clarity

Tobias Oetiker tobi at oetiker.ch
Sat Feb 21 10:21:11 CET 2009


Hi Bernhard,

Newlines in lables is not supported. Makeing this work well would
require to rework the whole layout mechanism for the graph since at
the moment the sizeing fortext bits does not take into
consideration that they could grow vertically.

thanks for the doc patch!
tobi

Thursday Bernhard Reutner-Fischer wrote:

> On Thu, Feb 19, 2009 at 01:26:48PM +0100, Bernhard Reutner-Fischer wrote:
> >Hi there,
>
> [Only recoding it here so it's easier to find for tobi]
>
> 0) Question WRT newlines in labels
> How can i have a label (e.g. vertical label) that consists of two or more lines?
> I've tried something like
> $ rrdtool graph --vertical-label="one\ntwo\nthree"
> but that doesn't seem to do what i want.
>
> Suggestions?
>
> 1) Fix typo in rrdgraph manpage
> sed -i -e s/centred/centered/g docs/rrdgraph.pod
>
> Index: doc/rrdgraph.pod
> ===================================================================
> --- doc/rrdgraph.pod	(revision 1746)
> +++ doc/rrdgraph.pod	(working copy)
> @@ -435,7 +435,7 @@
>
>  [B<-W>|B<--watermark> I<string>]
>
> -Adds the given string as a watermark, horizontally centred, at the bottom
> +Adds the given string as a watermark, horizontally centered, at the bottom
>  of the graph.
>
>  =head2 Data and variables
>
>
> 2) Spell out RPN for clarity
>
> Index: doc/rrdgraph_rpn.pod
> ===================================================================
> --- doc/rrdgraph_rpn.pod	(revision 1746)
> +++ doc/rrdgraph_rpn.pod	(working copy)
> @@ -9,7 +9,8 @@
>  =head1 DESCRIPTION
>
>  If you have ever used a traditional HP calculator you already know
> -B<RPN>. The idea behind B<RPN> is that you have a stack and push
> +B<RPN> (Reverse Polish Notation).
> +The idea behind B<RPN> is that you have a stack and push
>  your data onto this stack. Whenever you execute an operation, it
>  takes as many elements from the stack as needed. Pushing is done
>  implicitly, so whenever you specify a number or a variable, it gets
>
>

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900



More information about the rrd-developers mailing list