[reportlab-users] add labels to axes
Ingo Graser
reportlab-users@reportlab.com
Wed, 4 Dec 2002 08:19:48 +0100 (CET)
@Rüdiger: Thank you for your answer. I will try this out.
What I forgot to mention is, that I use RenderPM to make Charts in Zope. So
the main Problem is, that I has to be configurable via RenderPM and the
data for the string will be passed via an Python Script to the Chart.
Greets,
Ingo :)
> reportlab-users@reportlab.com schrieb am 02.12.02 16:18:11:
>
> Hi Ingo,
>
>> I need 2 more labels for showing Dimension and Description to be
>> attached to each axis.
>>
>> What do I have to to do ?
>
> I can only tell you, what I am doing. here comes the snippet:
>
> # Drawing
> dwg = Drawing(440,160)
> # Title of bar chart is the teststep
> dwg.add(String(50, dwg.height-MyfontSize-5, txt))
> bc = VerticalBarChart()
> bc.x = 50 # leave space for X-Axis labels
> bc.y = 30 # leave space for Y-Axis labels
> bc.height = dwg.height - bc.y - MyfontSize - 10
> bc.width = dwg.width - bc.x - 10
>
> It draws a title, but it should be obvious, how to change that
> to your needs.
>
> HTH,
>
> Rüdiger
>
____________________________________________________________________________
__
> Immer die neuesten ASCII-Bilder versenden, mit WEB.DE FreeMail ist das
> kein Problem fur Sie. http://freemail.web.de/features/?mc=021170
>
> _______________________________________________
> reportlab-users mailing list
> reportlab-users@reportlab.com
> http://two.pairlist.net/mailman/listinfo/reportlab-users
-------------------------------------
Der Inhalt dieser e-Mail ist ausschlieŒlich fr den bezeichneten Adressaten
bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser e-Mail oder
dessen Vertreter sein sollten, so beachten Sie bitte, dass jede Form der
Kenntnisnahme, Ver”ffentlichung, Vervielf„ltigung oder Weitergabe des
Inhalts dieser e-Mail unzul„ssig ist. Wir bitten Sie, sich in diesem Fall mit
dem Absender der e-Mail in Verbindung zu setzen.
The information contained in this e-mail ist intended solely for the addressee.
Access to this e-mail by anyone else is unauthorized. If you are not the
intended recipient, any from of disclosure, reproduction, distribution or any
action taken or refrained from in reliance on it, is prohibited and may be
unlawful. Please notify the sender immediately.
Unsere e-mail Adresse hat sich ge"ndert. Wir sind aber auch weiterhin
unter der alten Adresse @rasselstein-hoesch.de zu erreichen.
Please note that our e-mail address has changed. Nevertheless you still
can reach us by our old address @rasselstein-hoesch.de .