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
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?
P.S. I'm using matplotlib v. 0.98.5.2 on Python 2.6 running on x86_64 Linux