Problem with matplotlib 1.0.1 and psfrag (LaTeX)

Hi,

the eps output of matplotlib 1.0.1 don't work with the LaTeX macro PSfrag
(http://en.wikipedia.org/wiki/PSfrag). In the release notes
(RELEASE_NOTES-1.0.1.txt) I can not find any changes to the eps output. What
have you done?

···

--
View this message in context: http://old.nabble.com/Problem-with-matplotlib-1.0.1-and-psfrag-(LaTeX)-tp30644263p30644263.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

I have compared the new and old output. For example the "0.0" in a diagram:

old eps (1.0.0):

35.223 19.934 m
0 0.141 rmoveto
(0.0) show
[1 2] 0 setdash
0.502 setgray

new eps (1.0.1):

35.222810 19.933563 translate
0.000000 rotate
0.000000 0.140625 m /zero glyphshow
6.362305 0.140625 m /period glyphshow
9.541016 0.140625 m /zero glyphshow
grestore
[1 2] 0 setdash
0.502 setgray

...

···

--
View this message in context: http://old.nabble.com/Problem-with-matplotlib-1.0.1-and-psfrag-(LaTeX)-tp30644263p30644322.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

Ah, this bit me yesterday as well. I wanted to edit some labels using InkScape and it became easier to just modify my original script and just re-make the image. I know there were some “fixes” recently, but I don’t know the specifics.

Ben Root

···

On Tue, Jan 11, 2011 at 8:45 AM, Lebostein <Lebostein@…120…380…> wrote:

I have compared the new and old output. For example the “0.0” in a diagram:

old eps (1.0.0):

35.223 19.934 m

0 0.141 rmoveto

(0.0) show

[1 2] 0 setdash

0.502 setgray

new eps (1.0.1):

35.222810 19.933563 translate

0.000000 rotate

0.000000 0.140625 m /zero glyphshow

6.362305 0.140625 m /period glyphshow

9.541016 0.140625 m /zero glyphshow

grestore

[1 2] 0 setdash

0.502 setgray

The change in behavior was to fix this bug:

It seems it may be impossible to produce Postscript that works across
all fonts and all readers at the same time.
Can you provide a simple LaTeX document that illustrates the problem
with psfrag? This is still compliant Postscript, AFAICT.
Mike

···

http://sourceforge.net/tracker/?func=detail&aid=3062773&group_id=80706&atid=560720

On Tue, Jan 11, 2011 at 8:45 AM, Lebostein <Lebostein@…380…>
wrote:

I have compared the new and old output. For example the “0.0” in a
diagram:

old eps (1.0.0):

35.223 19.934 m

0 0.141 rmoveto

(0.0) show

[1 2] 0 setdash

0.502 setgray

new eps (1.0.1):

35.222810 19.933563 translate

0.000000 rotate

0.000000 0.140625 m /zero glyphshow

6.362305 0.140625 m /period glyphshow

9.541016 0.140625 m /zero glyphshow

grestore

[1 2] 0 setdash

0.502 setgray

Ah, this bit me yesterday as well. I wanted to edit some labels using
InkScape and it became easier to just modify my original script and
just re-make the image. I know there were some “fixes” recently, but I
don’t know the specifics.

Ben Root



Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers’ information secure and instills the confidence they need to proceed with transactions.


Matplotlib-users mailing list
http://p.sf.net/sfu/oracle-sfdevnl


Matplotlib-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/matplotlib-users

-- Michael Droettboom
Science Software Branch
Space Telescope Science Institute
Baltimore, Maryland, USA