negative bounding box in eps files

Hi,

I'm experiencing a weird problem with the bounding box of my eps files.
I have a script that produces my plots and saves them as eps files.
For some reason the x coordinate of the bounding box is negative.

The bounding box of the files are: %%BoundingBox: -54 36 666 756

Then, when I try to print or show these files with gv they are clipped at
the left side.
I found the translate command on the EPS file format specification, so I
added: 54 0 translate to the eps header.
Everything looked ok until I tried to include these files in a tex/ps
document. Now they get clipped on the right side! I've tried and googled
several things and can't get it to work.

Does anyone knows what is going on?

Thanks in advance

Ramiro

···

--
View this message in context: http://www.nabble.com/negative-bounding-box-in-eps-files-tp21593093p21593093.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

Hi,

I'm experiencing a weird problem with the bounding box of my eps files.
I have a script that produces my plots and saves them as eps files.
For some reason the x coordinate of the bounding box is negative.

The bounding box of the files are: %%BoundingBox: -54 36 666 756

Then, when I try to print or show these files with gv they are clipped at
the left side.

That seems just right: they should be clipped at the
page boundary. This shoud *not* affect their inclusion
in a document, however, for correctly behaving applications.

Perhaps this is useful:

I found the translate command on the EPS file format specification, so I
added: 54 0 translate to the eps header.
Everything looked ok until I tried to include these files in a tex/ps
document. Now they get clipped on the right side!

You would need to change the bounding box too!

I think eps2eps will do all this for you if you really want to.

Alan Isaac

···

On 1/21/2009 4:52 PM ramirodsl apparently wrote: