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] <input[.pdf]> [output file]
Function: Margins are calculated and removed for each page in the file.
Options:                                                    (defaults:)
  --help              print usage
  --(no)verbose       verbose printing                      (false)
  --(no)debug         debug informations                    (false)
  --gscmd <name>      call of ghostscript                   (gs)
  --pdftexcmd <name>  call of pdfTeX                        (pdftex)
  --margins "<left> <top> <right> <bottom>"                 (0 0 0 0)
                      add extra margins, unit is bp. If only one number is
                      given, then it is used for all margins, in the case
                      of two numbers they are also used for right and
bottom.
  --(no)clip          clipping support, if margins are set  (false)
  --(no)hires         using `%%HiResBoundingBox'            (false)
                      instead of `%%BoundingBox'
  --papersize <foo>   parameter for gs's -sPAPERSIZE=<foo>,
                      use only with older gs versions <7.32 ()
Examples:
  pdfcrop --margins 10 input.pdf output.pdf
  pdfcrop --margins '5 10 5 20' --clip input.pdf output.pdf


2008/2/29, Alan G Isaac <[EMAIL PROTECTED]>:
>
> 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 edge of my plot really is.
>
>
> Hmmm.  That is just what eps2eps should do.
> Perhaps there is something drawn outside what
> you believe your picture is?
>
> Here are  more possibilities:
> http://www.physics.ohio-state.edu/cgi-bin/fom?_recurse=1&file=103#file_105
>
> Some Python code to exploit this GS ability is here:
> http://citadel.tistory.com/130
>
>
> Cheers,
> Alan Isaac
>
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to