[reportlab-users] Size of LinePlot

Robin Becker reportlab-users@reportlab.com
Fri, 1 Aug 2003 15:29:38 +0100

In article <sevfth8q77.fsf@pc020549.dhcp.germanlloyd.org>, Berthold
Höllmann <hoel@gl-group.com> writes
>Is there a way to calculate the size of a LinePlot including the axis
>labels? LinePlot.[width,height] only give the size of the drawing
>without the labels.
There is a way, but it involves traversing the subwidget without
actually drawing it and recording the max/min values to get the bounding
box. We have code to do it in some of our proprietary stuff. Perhaps
Andy will move it into the opensource code at some point.
Robin Becker