savefig(epsfilename) Bug on XP

Dear Kristen,

Make sure that in Gsview, EPS Clip is "ticked"

See under Options -> EPS Clip

The problem is that the EPS picture in not an A4 (or letter) canvas but
on a bigger canvas...

By editing the EPS, you'll find a line that read something like, e.g.:

...
%%BoundingBox: 162 744 1171 1753
...

The left boundingbox margin is set at 1171/72=16.26in (413.1mm), much
wider than an A4 (or letter) Media type

You can also set the Media size to, say, A0...

See under Media -> A0 or User Defined...

But for an EPS picture, EPS Clip would suffice...

Regards,

Peter-Jan

PS:

Because of the width of the EPS picture in LaTeX, you would need a line
like, e.g.

...
\centerline{\includegraphics[width=16cm]{myepsfile.eps}}
...

To scale the EPS picture for A4 paper (depending on you margins or
number of columns etc.)

···

-----Original Message-----
From: Kristen Kaasbjerg [mailto:cosby@…845…]
Sent: 19 October 2005 10:00
To: Randewijk P-J, Mnr <pjrandew@...841...>
Subject: Re: [Matplotlib-users] savefig(epsfilename) Bug on XP

Hi again

This solved the problem, however, the figure is
placed in the corner of the eps files, implying that
only the bottom left corner of the figure is actually
visible. Any idea why ?

Kristen

----- Original Message -----
From: <pjrandew@...841...>
To: "Kristen Kaasbjerg" <cosby@...845...>
Cc: <jdhunter@...4...>
Sent: Wednesday, October 19, 2005 9:44 AM
Subject: RE: [Matplotlib-users] savefig(epsfilename) Bug on XP

Dear Kristen,

Try this one.

I'll put a post on the mailinglist as well.

Kind regards,

Peter-Jan

-----Original Message-----
From: Kristen Kaasbjerg [mailto:cosby@…845…]
Sent: 19 October 2005 09:30
To: Randewijk P-J, Mnr <pjrandew@...841...>; John Hunter
Cc: matplotlib-users@lists.sourceforge.net
Subject: Re: [Matplotlib-users] savefig(epsfilename) Bug on XP

Hi folks

I can still not succeed saving my figures in ps or eps format with the
new ps backend file you send out. I'm using python 2.4, mpl .84. Have
tried with both Numeric and numarray.

Kristen

----- Original Message -----
From: "John Hunter" <jdhunter@...4...>
To: <pjrandew@...841...>
Cc: <matplotlib-users@lists.sourceforge.net>
Sent: Wednesday, October 19, 2005 4:20 AM
Subject: Re: [Matplotlib-users] savefig(epsfilename) Bug on XP

""Randewijk" == "Randewijk P-J, Mnr <pjrandew@...841...>"
<pjrandew@...841...> writes:

   "Randewijk> Dear (newbie like myself) XP or more specific win32
   "Randewijk> users, The problem was not with the 'dvips' command,
   "Randewijk> but with the 'latex' command in version 0.83.2.

   "Randewijk> After changing the line 1086 in backend_ps.py 0.83.2
   "Randewijk> to read:

I've made the suggested changes to backend_ps.py. Because I don't
have access to a win32 box with TeX, could I ask win32 / TeX users to
test the attached backend_ps file to make sure it is OK?