postscript fonts: examples in matplotlib

All,

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
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
matplotlib.version
‘1.0.0’
matplotlib.file
‘/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/init.pyc’

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 http://matplotlib.sourceforge.net/ 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.

Mike

···

http://p.sf.net/sfu/novell-sfdev2dev


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

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