[IPython-User] Trouble with matplotlib fonts in IPython notebook (2nd try)
Matthias BUSSONNIER
bussonniermatthias@gmail....
Thu Mar 1 09:38:40 CST 2012
Le 1 mars 2012 à 15:28, Mike Witt a écrit :
> I thought I'd try this question one more time. If anyone could point me
> to the correct source of information, I'd appreciate it.
Does it gives the sakes errors if you use it outside of the notebook or even on pure python interpreter ?
If so I guess you'll have a better chance of response on matplotlib ML.
you can take a look at TeX rendering in matplotlib.
http://matplotlib.sourceforge.net/users/usetex.html
and fontManager :
http://matplotlib.sourceforge.net/api/font_manager_api.html
--
Matthias
> On 02/27/2012 10:00:19 PM, Mike Witt wrote:
>> 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]))
>
> _______________________________________________
> IPython-User mailing list
> IPython-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20120301/c805975f/attachment.html
More information about the IPython-User
mailing list