[rrd-users] Graph size changed between 1.2.28 and 1.4.5
Victor Engmark
victor.engmark at terreactive.ch
Mon May 30 15:16:00 CEST 2011
Hi Tobias,
Thanks for the hints. I've tried to remove all the settings (even the
height/width), but the text is still crammed up with the canvas. From
the behavior with different settings it seems that the issue is simply
that there's no margin to the right of the canvas (or equivalently, to
the left of the logo text. Is there some setting to tweak this
specifically?
We also modify rrd_graph.c for branding purposes - The logo text is not
the standard one, and the watermark code has been commented out. Is this
relevant for the margins? It looks like this line in graph_size_location
might be relevant:
Xmain -= Xylabel;// + Xspacing;
Cheers,
Victor
On Mon, May 30, 2011 at 02:31:26PM +0200, Tobias Oetiker wrote:
> Hi Victor,
>
> the complete graphics subsystem has been switched around from 1.2
> to 1.3 this caused a number of changes ... in any event, the width
> and hights settings only define the size of the canvas and not the
> chart as such ... there is now an option to make --width and
> --height act as outside sizes ...
>
> cheers
> tobi
>
> Today Victor Engmark wrote:
>
> > Hi all,
> >
> > I've recently taken over distribution of an RRDtool package for a Linux From Scratch distribution. After an upgrade from 1.2.28 to 1.4.5 the graphs are now smaller; they've gone from 615x241 to 600x229 pixels. It looks like this is related to the rendering of the vertical "icon"/watermark on the right side of the graph. I managed to get the *width* of the text down to the previous value by adding `--font WATERMARK:6:/path/to/DejaVuSansMono.ttf`, but now it's *taller* than before, and there's no bottom margin between it and the graph. In the previous version, the text was 6px tall, and now it's 8px (even with the --font setting above). The bottom margin has gone from 15px to 0px, making it hug the right side of the graph. The title text is also 2px taller, although neither the font nor the settings changed. Any idea what could have caused this?
> >
> > I've tried to reduce the logo font size, but then the text width is too low, and I've tried `--graph-render-mode=mono` <http://oss.oetiker.ch/rrdtool-trac/wiki/RRDtool13#GraphingwithCairoPango>.
> >
> > Cheers,
> > Victor
> >
> >
>
> --
> 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
--
terreActive AG
Kasinostrasse 30
CH-5001 Aarau
Tel: +41 62 834 00 55
Fax: +41 62 823 93 56
www.terreactive.ch
Wir sichern Ihren Erfolg - seit 15 Jahren
More information about the rrd-users
mailing list