From: Randewijk P-J, M. <pjr...@su...> - 2005-10-19 08:26:28
|
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=3D16.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=3D16cm]{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:co...@fy...]=20 Sent: 19 October 2005 10:00 To: Randewijk P-J, Mnr <pjr...@su...> 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 -----=20 From: <pjr...@su...> To: "Kristen Kaasbjerg" <co...@fy...> Cc: <jdh...@ac...> 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:co...@fy...]=20 Sent: 19 October 2005 09:30 To: Randewijk P-J, Mnr <pjr...@su...>; John Hunter Cc: mat...@li... 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 -----=20 From: "John Hunter" <jdh...@ac...> To: <pjr...@su...> Cc: <mat...@li...> Sent: Wednesday, October 19, 2005 4:20 AM Subject: Re: [Matplotlib-users] savefig(epsfilename) Bug on XP >>>>>> ""Randewijk" =3D=3D "Randewijk P-J, Mnr <pjr...@su...>"=20 >>>>>> <pjr...@su...> 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=20 > test the attached backend_ps file to make sure it is OK? > >=20 |