bug in savefig?

Has anyone reported a bug in the post-script renderer regarding text with backticks in it? I remember that there was a bug fix for single quotes, but I just ran into this one.

I'm using 0.98.2 on OS 10.5.

A sample script is below. If I try to open the postscript file in Mac's Preview, it attempts to convert it to a PDF before viewing and fails. Similarly, if I try to convert it using ps2pdf, it also fails.

#!/usr/bin/python

from pylab import *

x = array([1,2,3,4])
y = array([5,6,7,8])
plot(x,y,'r+')
hold(True)
text(2,7,"El `Jamar")
savefig('output.eps')
savefig('output.png')

···

--
------------------------------------------------------
Michael Hearne
mhearne@...924...
(303) 273-8620
USGS National Earthquake Information Center
1711 Illinois St. Golden CO 80401
Senior Software Engineer
Synergetics, Inc.
------------------------------------------------------

Thanks for reporting this. It is now fixed in SVN r6085.

If you're not running SVN, you can apply this patch here:

I'll go ahead and fix this on the maintenance branch too.

Cheers,
Mike

Michael Hearne wrote:

···

Has anyone reported a bug in the post-script renderer regarding text with backticks in it? I remember that there was a bug fix for single quotes, but I just ran into this one.

I'm using 0.98.2 on OS 10.5.

A sample script is below. If I try to open the postscript file in Mac's Preview, it attempts to convert it to a PDF before viewing and fails. Similarly, if I try to convert it using ps2pdf, it also fails.

#!/usr/bin/python

from pylab import *

x = array([1,2,3,4])
y = array([5,6,7,8])
plot(x,y,'r+')
hold(True)
text(2,7,"El `Jamar")
savefig('output.eps')
savefig('output.png')

--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA