[IPython-User] Trouble with matplotlib fonts in IPython notebook

Mike Witt msg2mw@gmail....
Tue Feb 28 00:00:19 CST 2012


I've just begun trying to use the IPython notebook, and I'm having
a problem with the example file: 00_notebook_tour. Any of the examples
that use latex on a matplotlib plot (for instance, the very last example
in the tour notebook) give me a bunch of errors apparently from the
matplotlib "font manager" (I've used matplotlib with Sage, but I don't
really know a lot about it.)

I imagine that I simply don't have the necessary fonts installed, or
else something needs to be configured to identify where the fonts are?
I using:

   Fedora 16
   python 2.7.2
   IPython 0.13.dev (from a couple of days ago)

I'll include the errors at the end.

Thanks!

-Mike

elf.defaultFamily[fontext]))
/usr/lib/python2.7/site-packages/matplotlib/font_manager.py:1252:  
UserWarning: findfont: Could not match :family=Bitstream Vera  
Sans:style=normal:variant=normal:weight=normal:stretch=normal:size=10.  
Returning /usr/s
hare/fonts/thai-scalable/Waree-Oblique.ttf
   UserWarning)
/usr/lib/python2.7/site-packages/matplotlib/font_manager.py:1242:  
UserWarning: findfont: Font family ['STIXSizeThreeSym'] not found.  
Falling back to Bitstream Vera Sans
   (prop.get_family(), self.defaultFamily[fontext]))
/usr/lib/python2.7/site-packages/matplotlib/font_manager.py:1242:  
UserWarning: findfont: Font family ['STIXSizeFourSym'] not found.  
Falling back to Bitstream Vera Sans
   (prop.get_family(), self.defaultFamily[fontext]))
/usr/lib/python2.7/site-packages/matplotlib/font_manager.py:1242:  
UserWarning: findfont: Font family ['STIXSizeFiveSym'] not found.  
Falling back to Bitstream Vera Sans
   (prop.get_family(), self.defaultFamily[fontext]))
/usr/lib/python2.7/site-packages/matplotlib/font_manager.py:1242:  
UserWarning: findfont: Font family ['STIXSizeTwoSym'] not found.  
Falling back to Bitstream Vera Sans
   (prop.get_family(), self.defaultFamily[fontext]))
/usr/lib/python2.7/site-packages/matplotlib/font_manager.py:1242:  
UserWarning: findfont: Font family ['STIXNonUnicode'] not found.  
Falling back to Bitstream Vera Sans
   (prop.get_family(), self.defaultFamily[fontext]))
/usr/lib/python2.7/site-packages/matplotlib/font_manager.py:1252:  
UserWarning: findfont: Could not match :family=Bitstream Vera  
Sans:style=italic:variant=normal:weight=normal:stretch=normal:size=10.  
Returning /usr/s
hare/fonts/thai-scalable/Waree-Oblique.ttf
   UserWarning)
/usr/lib/python2.7/site-packages/matplotlib/font_manager.py:1252:  
UserWarning: findfont: Could not match :family=Bitstream Vera  
Sans:style=normal:variant=normal:weight=bold:stretch=normal:size=10.  
Returning /usr/sha
re/fonts/thai-scalable/Waree-Oblique.ttf
   UserWarning)
/usr/lib/python2.7/site-packages/matplotlib/font_manager.py:1242:  
UserWarning: findfont: Font family ['cmb10'] not found. Falling back to  
Bitstream Vera Sans
   (prop.get_family(), self.defaultFamily[fontext]))
/usr/lib/python2.7/site-packages/matplotlib/font_manager.py:1242:  
UserWarning: findfont: Font family ['cmtt10'] not found. Falling back  
to Bitstream Vera Sans
   (prop.get_family(), self.defaultFamily[fontext]))
/usr/lib/python2.7/site-packages/matplotlib/font_manager.py:1242:  
UserWarning: findfont: Font family ['cmmi10'] not found. Falling back  
to Bitstream Vera Sans
   (prop.get_family(), self.defaultFamily[fontext]))
/usr/lib/python2.7/site-packages/matplotlib/font_manager.py:1242:  
UserWarning: findfont: Font family ['cmex10'] not found. Falling back  
to Bitstream Vera Sans
   (prop.get_family(), self.defaultFamily[fontext]))
/usr/lib/python2.7/site-packages/matplotlib/font_manager.py:1242:  
UserWarning: findfont: Font family ['cmsy10'] not found. Falling back  
to Bitstream Vera Sans
   (prop.get_family(), self.defaultFamily[fontext]))
/usr/lib/python2.7/site-packages/matplotlib/font_manager.py:1242:  
UserWarning: findfont: Font family ['cmr10'] not found. Falling back to  
Bitstream Vera Sans
   (prop.get_family(), self.defaultFamily[fontext]))
/usr/lib/python2.7/site-packages/matplotlib/font_manager.py:1242:  
UserWarning: findfont: Font family ['cmss10'] not found. Falling back  
to Bitstream Vera Sans
   (prop.get_family(), self.defaultFamily[fontext]))


More information about the IPython-User mailing list