postscript fonts: examples in matplotlib


I am wondering if anyone knows of a working example that yields
a postscript figure editable in Adobe Illustrator; that is, the characters are editable as characters.
I have only been able to get drawn fonts and would love to have a test case that is known to work.

My environment is:

Python 2.6.6 (r266:84292, Sep 11 2010, 15:25:14)
[GCC 4.2.1 (Apple Inc. build 5659)] on darwin
Type “help”, “copyright”, “credits” or “license” for more information.

import matplotlib


my rc file is:
backend : TkAgg # the default backend
interactive : True
ps.usedistiller : xpdf

I can produce postscript fonts outside python, say in IDL.
I can produce postscript fonts in python using the psg package, but not matplotlib.
In all the examples at I did not find anything that
explicitly addresses this issue.

Thanks to anyone who answers with a test case.

You can set the rcParam “ps.useafm” to True, which will use the
built-in Postscript fonts (and not embed any in the file), or set
“ps.fonttype” to “42” which will embed the complete Truetype font in
the file.




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