[reportlab-users] how to get rid of some empty space?
Viktor Nagy
viktor.nagy at toolpart.hu
Sat Dec 25 12:44:22 EST 2010
thanks, this was the problem, I've messed up the dimensions.
On Wed, Dec 22, 2010 at 8:28 PM, Tim Roberts <timr at probo.com> wrote:
> 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.
>
> _______________________________________________
> reportlab-users mailing list
> reportlab-users at lists2.reportlab.com
> http://two.pairlist.net/mailman/listinfo/reportlab-users
>
--
ToolPart Team Ltd
6725 Szeged, Boldogasszony sgt. 65.
Info: +36 30 430 4971
Tel.: +36 62 469 321
Fax: +36 62 426 738
E-mail: toolpart at toolpart.hu
Web: www.toolpart.hu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20101225/8a162dec/attachment.htm>
More information about the reportlab-users
mailing list