MPL, by default, does not do any clipping. So, i'm not sure why the
extent of the circle matters (I think even the bbox_inches option does
not take care of that) . Everything should be fine as far as you
create a figure in an appropriate size. Changing the suplotplot
parameters (or something similar) is not your option?

If possible, can you post a simplified version of your code that
demonstrate the problem?

Regards,

-JJ



On Sun, Oct 4, 2009 at 6:32 PM, Jason Sewall <jasonsew...@gmail.com> wrote:
> I'm drawing a figure for inclusion into a LaTeX document, and I'm
> having trouble getting matplotlib to export a .pdf that 'tightly'
> encapsulates the drawing that is generated - I get a lot of whitespace
> at the bottom, in particular.
>
> After some experimentation, I've found that the culprit is an Arc that
> I am drawing near the bottom of the page. The angle range is something
> like pi/4 to 3*pi/4, so the actual line is located well above the
> center of the circle defining the arc, but it appears that the arc is
> reporting a bounding box that is the same as would be reported for a
> circle.
>
> Perhaps this isn't a bug and this behavior is useful to some, but I'd
> really like to be able to get the resulting image fit tightly around
> the drawn lines and not invisible bounding boxes.
>
> Can anyone help me out? Is there some way I can force matplotlib to
> 'clip' the output?
>
> Thanks,
> Jason
>
> P.S. I'm using matplotlib v. 0.98.5.2 on Python 2.6 running on x86_64 Linux
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
> http://p.sf.net/sfu/devconf
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to