[reportlab-users] how to get rid of some empty space?
timr at probo.com
Wed Dec 22 14:28:32 EST 2010
Viktor Nagy wrote:
> this is the first time I use reportlab/platypus to create a pdf. I've
> found it to be really nice and easy to use, except for one factor,
> that I could not come over. Could someone more experienced help me
> out, please?
> The following code generates a sample of what I want, if you run it,
> you'll see that there is a huge empty space between the "headers" and
> the line plots. I would like to reduce this space.
Did your question get answered? I may have lost track.
You are creating the drawing area with a height of 210 points, but you
are setting the height of the plot to 170 points:
drawing = shapes.Drawing(145, 210)
lp = LinePlot()
lp.x = 30
lp.y = 20
lp.height = 120
lp.width = 170
lp.data = [ data.values() ]
That extra 40 points represents the empty space you see.
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the reportlab-users