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
Milestone
Description
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
Labels
No labels