Hi, I had the same problem.
I solved it by using TeX, i.e., rc('text', usetex=True) for all the text in a plot. Benoit > Hi list, > > I'm having some font weirdness using matplotlib 0.87.4 on MacOSX with > the WXAgg backend. > It's a clean install of universal builds from macpython.org. > > First of all, when lauching for the first time (or if I delete the > font cache), I get: >> ipython -pylab >> loaded rc file /Users/manuel/.matplotlib/matplotlibrc >> matplotlib version 0.88 >> verbose.level helpful >> interactive is True >> platform is darwin >> numerix numpy 0.9.8 >> font search path ['/Library/Frameworks/Python.framework/Versions/ >> 2.4/lib/python2.4/site-packages/matplotlib/mpl-data'] >> $HOME=/Users/manuel >> CONFIGDIR=/Users/manuel/.matplotlib >> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ >> site-packages/matplotlib/font_manager.py:453: UserWarning: Could >> not open font file /System/Library/Fonts/Helvetica LT MM >> warnings.warn("Could not open font file %s"%fpath) >> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ >> site-packages/matplotlib/font_manager.py:453: UserWarning: Could >> not open font file /System/Library/Fonts/HelveLTMM >> warnings.warn("Could not open font file %s"%fpath) >> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ >> site-packages/matplotlib/font_manager.py:453: UserWarning: Could >> not open font file /System/Library/Fonts/Times LT MM >> warnings.warn("Could not open font file %s"%fpath) >> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ >> site-packages/matplotlib/font_manager.py:453: UserWarning: Could >> not open font file /Library/Fonts/fonts.cache-1 >> warnings.warn("Could not open font file %s"%fpath) >> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ >> site-packages/matplotlib/font_manager.py:453: UserWarning: Could >> not open font file /System/Library/Fonts/LastResort.dfont >> warnings.warn("Could not open font file %s"%fpath) >> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ >> site-packages/matplotlib/font_manager.py:453: UserWarning: Could >> not open font file /System/Library/Fonts/Keyboard.dfont >> warnings.warn("Could not open font file %s"%fpath) >> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ >> site-packages/matplotlib/font_manager.py:453: UserWarning: Could >> not open font file /System/Library/Fonts/TimesLTMM >> warnings.warn("Could not open font file %s"%fpath) >> Saving TTF font cache for non-PS backends to /Users/ >> manuel/.matplotlib/ttffont.cache. >> Delete this file to have matplotlib rebuild the cache. >> matplotlib data path /Library/Frameworks/Python.framework/Versions/ >> 2.4/lib/python2.4/site-packages/matplotlib/mpl-data >> backend WXAgg version 2.6.3.2rc2 >> Python 2.4.3 (#1, Mar 30 2006, 11:02:16) >> Type "copyright", "credits" or "license" for more information. >> >> IPython 0.7.2 -- An enhanced Interactive Python. >> ? -> Introduction to IPython's features. >> %magic -> Information about IPython's 'magic' % functions. >> help -> Python's own help system. >> object? -> Details about 'object'. ?object also works, ?? prints more. >> >> Welcome to pylab, a matplotlib-based Python environment. >> For more information, type 'help(pylab)'. > > Then, if I try to save a plot in eps, nor Preview.app nor Illustrator > can open the eps file. Furthermore the file is huge (several MB) for > a very simple plot. > If I save the plot as a svg, then I can open the file with Firefox or > Illustrator, although Illustrator complains about a "missing font" > and substitute it with its defaut font. I've looked onto the svg file > and it should use Lucida Grande, which is available on the system... > > I've read on this very list that I might solve some issues by putting > the Bitstream familly of fonts as first choice in my matplotlibrc, > which I did. > In these conditions, saving as eps yields a file which can be opened > by Preview.app, but opening it in Illustrator results in a plot where > every fonts are replaced by little boxes (see attached picture) > Saving as a svg works too, excepts that both in Firefox and > illustrator, the font used are Bitstream Vera Sans *Oblique* whereas > inside the svg file it is written Bitstream Vera Sans Roman... > > Also, if I remove the section %%BeginFont: BitstreamVeraSans-Roman > (...) %%EndFont directly from the eps file, then I can open it > perfectly fine in Illustrator. > > I'm not sure this is directly related to matplotlib, but i'll be > grateful of someone can help me with these little annoyances. > > Thanks, > Marin > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642_______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users