Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed
Labels
Milestone
Description
Hi,
I was asked to file an Issue here on github, although I'm not sure if the problem is not in front of my PC... .
frompylabimport*frommathimportsinrc('text',usetex=False)la=matplotlib.font_manager.FontManager()lu=matplotlib.font_manager.FontProperties(family='Heuristica')printla.findfont(lu)x=np.arange(0,5,0.1)y=map(sin,x)title('This is an unnecessary title',family='Heuristica')plot(x,y)show()
As a result I get (besides a graph using an unwanted font):
C:\Windows\Fonts\Heuristica-Regular.otfC:\Python27\lib\site-packages\matplotlib\font_manager.py:1279: UserWarning: findfont: Font family ['Heuristica'] not found. Falling back to Bitstream Vera Sans(prop.get_family(), self.defaultFamily[fontext]))
If I add Heuristica on first spot of the serif-font-Types this will also not work, (i. e. font.serif : Heuristica, Bitstream Vera Serif
)
I am using matplotlib 1.4.0 and Python 2.7.6, I asked this question onStackOverflow first