The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: How do I crop EPS output?
Replies: 4   Last Post: Apr 7, 2004 7:44 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Jens Benecke

Posts: 10
Registered: 12/7/04
Re: How do I crop EPS output? -- SOLUTION
Posted: Apr 7, 2004 7:44 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Stefan Stoll wrote:

> Jens Benecke wrote

>> However, when I use manual size (wfactor, hfactor above) Matlab adds a
>> white margin to the document at the left and right side. I would like to
>> remove those margins because I need the plots to align with the text in
>> the documents.

> What exactly do you want to align with your text?
> The y axis label, the tick descriptors, the ticks,
> the y axis? Please give some more details.


thanks for your reply! I want the figure to be exactly as big as the file
geometry, so that when I tell LaTeX to input the picture with
"width=\textwidth" it will be exactly as wide as the text.

Currently, the graphics have a large white margin left and right
(, instead of being
"cropped" (, though the latter
is not _perfectly_ cropped, it would be enough for me).

But I just found
"epstool" ( which can
do exactly what I need:

epstool --copy --bbox input.eps output.eps

will "optimize" the BoundingBox of the EPS file and remove any margins.

Thank you, anyway :-)

Jens Benecke (jens at - Europaweite kostenlose Mitfahrzentrale - 100% saubere Postfächer - garantiert! - PHP ab 9? - SSH ab 19? - günstiger Traffic
Please DO NOT CC: me, I read the lists and newsgroups I post in!

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.