Hello,

I recently upgraded to the new texlive 2010 in fink, but I'm now having 
problems with saving matplotlib figures as PDFs.  When calling savefig, I get 
an error, with the last part of the traceback being:

  File "/sw/lib/python2.6/site-packages/matplotlib/backends/backend_pdf.py", 
line 1366, in tex_font_mapping
    return self.tex_font_map[texfont]
  File "/sw/lib/python2.6/site-packages/matplotlib/dviread.py", line 673, in 
__getitem__
    result = self._font[texname]
KeyError: 'cmr12'

I can get rid of the error by commenting out all of the following lines in my 
python code:

rc('text', usetex=True)
plt.rcParams.update({'text.usetex':True})
plt.rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']})

and once I do that, everything seems to work ok.  Has anyone else experienced a 
similar problem?  Any ideas what might have caused this: it seems like a change 
in how texlive responds to the matplotlib call, compared with tetex.  Would it 
be cleared up with a newer version of matplotlib?

Thank you,
John
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to