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

Repeated warning about fc-list #5836

Closed
Closed
Milestone
@astrofrog

Description

@astrofrog

Since Matplotlib 1.5.1, I see a warning (twice) each time I instantiate aFontManager():

In [2]:frommatplotlib.font_managerimportFontManagerIn [3]:FontManager()/Users/tom/miniconda3/envs/production/lib/python3.4/site-packages/matplotlib/font_manager.py:273:UserWarning:Matplotlibisbuildingthefontcacheusingfc-list.Thismaytakeamoment.warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')/Users/tom/miniconda3/envs/production/lib/python3.4/site-packages/matplotlib/font_manager.py:273:UserWarning:Matplotlibisbuildingthefontcacheusingfc-list.Thismaytakeamoment.warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')Out[3]:<matplotlib.font_manager.FontManagerat0x1057b6630>In [4]:FontManager()/Users/tom/miniconda3/envs/production/lib/python3.4/site-packages/matplotlib/font_manager.py:273:UserWarning:Matplotlibisbuildingthefontcacheusingfc-list.Thismaytakeamoment.warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')/Users/tom/miniconda3/envs/production/lib/python3.4/site-packages/matplotlib/font_manager.py:273:UserWarning:Matplotlibisbuildingthefontcacheusingfc-list.Thismaytakeamoment.warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')Out[4]:<matplotlib.font_manager.FontManagerat0x1064d4ba8>

This did not happen with 1.5.0. There's two issues here - the warning is repeated twice at each call, which indicates that the command is being run twice (inefficient), and the warning is being shown at all - why doesfc-list need to be run every timeFontManager is run? Even if there is a good reason for it to run, I'm not sure if a warning is necessary?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp