Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Won't use a font although it can be found by the FontManager #3590

Closed
@MichaelAdolph

Description

@MichaelAdolph

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp