Re: [Matplotlib-users] preventing extra whitespace around figure

2008-02-29 Thread David Huard
Have you tried pdfcrop ? It computes margin automatically, you could then transfer the file back to eps. David PDFCROP 1.5, 2004/06/24 - Copyright (c) 2002, 2004 by Heiko Oberdiek. Syntax: pdfcrop [options] [output file] Function: Margins are calculated and removed for each page in the file. O

Re: [Matplotlib-users] preventing extra whitespace around figure

2008-02-29 Thread Alan G Isaac
On Fri, 29 Feb 2008, Michael Hearne apparently wrote: > I gave this a shot, and eps2eps seems not to have any effect on the > bounding box. I've done some experiments where I reduce the bounding > box by hand, which works really well - the only problem is I need a > way to determine where the e

Re: [Matplotlib-users] preventing extra whitespace around figure

2008-02-29 Thread Michael Hearne
I gave this a shot, and eps2eps seems not to have any effect on the bounding box. I've done some experiments where I reduce the bounding box by hand, which works really well - the only problem is I need a way to determine where the edge of my plot really is. In Basemap, there is a box draw

Re: [Matplotlib-users] preventing extra whitespace around figure

2008-02-29 Thread Alan G Isaac
I think I recall that eps2eps can reset your bounding box, if that's the problem. http://www.linuxcommand.org/man_pages/eps2eps1.html Cheers, Alan Isaac - This SF.net email is sponsored by: Microsoft Defy all challenges. M

[Matplotlib-users] preventing extra whitespace around figure

2008-02-28 Thread Michael Hearne
Does anyone know of a way of preventing the generation of extra whitespace around the edge of a figure? The code sample below demonstrates the problem I'm having - I've tried postprocessing the postscript output with ImageMagick's "mogrify -trim", but unfortunately it makes it into a raste