[reportlab-users] My time-series chart

reportlab-users@reportlab.com reportlab-users@reportlab.com
Thu, 11 Sep 2003 16:36:20 -0400 (EDT)


Hi-


I'm in the process of using reportlab to write some reports that were
originally developed in powerpoint.  This is the original powerpoint
chart:

http://www.sarcastic-horse.com/example.pdf

And here's what I can do in reportlab so far:

http://www.sarcastic-horse.com/reportlab/xvcu.pdf

The source for the program is here:

http://www.sarcastic-horse.com/reportlab/xvcu.py

Anyway, I want to add shaded regions to my chart, so I've been drawing
plain old Rect objects.  The problem: I want the shaded regions to appear
in certain areas based on the x-y coordinates of the chart, not the actual
x-y coordinates of the drawing.

Anyway, how can I find out the low-level x,y values of a tick mark?  I
figure I can use the low-level x,y values of the tick marks to figure out
where to draw my shaded regions.

I hope I expressed this idea clearly.