Title: Repeated warning about fc-list · Issue #5836 · matplotlib/matplotlib · GitHub
Open Graph Title: Repeated warning about fc-list · Issue #5836 · matplotlib/matplotlib
X Title: Repeated warning about fc-list · Issue #5836 · matplotlib/matplotlib
Description: Since Matplotlib 1.5.1, I see a warning (twice) each time I instantiate a FontManager(): In [2]: from matplotlib.font_manager import FontManager In [3]: FontManager() /Users/tom/miniconda3/envs/production/lib/python3.4/site-packages/matp...
Open Graph Description: Since Matplotlib 1.5.1, I see a warning (twice) each time I instantiate a FontManager(): In [2]: from matplotlib.font_manager import FontManager In [3]: FontManager() /Users/tom/miniconda3/envs/pro...
X Description: Since Matplotlib 1.5.1, I see a warning (twice) each time I instantiate a FontManager(): In [2]: from matplotlib.font_manager import FontManager In [3]: FontManager() /Users/tom/miniconda3/envs/pro...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/5836
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Repeated warning about fc-list","articleBody":"Since Matplotlib 1.5.1, I see a warning (twice) each time I instantiate a `FontManager()`:\n\n``` python\nIn [2]: from matplotlib.font_manager import FontManager\n\nIn [3]: FontManager()\n/Users/tom/miniconda3/envs/production/lib/python3.4/site-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.\n warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')\n/Users/tom/miniconda3/envs/production/lib/python3.4/site-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.\n warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')\nOut[3]: \u003cmatplotlib.font_manager.FontManager at 0x1057b6630\u003e\n\nIn [4]: FontManager()\n/Users/tom/miniconda3/envs/production/lib/python3.4/site-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.\n warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')\n/Users/tom/miniconda3/envs/production/lib/python3.4/site-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.\n warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')\nOut[4]: \u003cmatplotlib.font_manager.FontManager at 0x1064d4ba8\u003e\n```\n\nThis 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 does `fc-list` need to be run every time `FontManager` is run? Even if there is a good reason for it to run, I'm not sure if a warning is necessary?\n","author":{"url":"https://github.com/astrofrog","@type":"Person","name":"astrofrog"},"datePublished":"2016-01-12T10:18:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":66},"url":"https://github.com/5836/matplotlib/issues/5836"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8131220f-2583-31ff-ae31-17886803b369 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AFCE:1B00D1:12A4FC:188A7F:6A5162C0 |
| html-safe-nonce | 6810e92bafe7f4ef2031be313db0b7656d528bbb5efbdbd9e9ab432b4cca1e6b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRkNFOjFCMDBEMToxMkE0RkM6MTg4QTdGOjZBNTE2MkMwIiwidmlzaXRvcl9pZCI6IjUzMTMyNjU0ODM0NDg5MzUxMDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | bd962b64daaa00f657a9a60a25351c4a34c7bb4caf856ea79b4238937a633895 |
| hovercard-subject-tag | issue:126145308 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/5836/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6a09f0e416936c1a4eee98c76775f32e68871a262f1b297629d84d5403440103/matplotlib/matplotlib/issues/5836 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6a09f0e416936c1a4eee98c76775f32e68871a262f1b297629d84d5403440103/matplotlib/matplotlib/issues/5836 |
| og:image:alt | Since Matplotlib 1.5.1, I see a warning (twice) each time I instantiate a FontManager(): In [2]: from matplotlib.font_manager import FontManager In [3]: FontManager() /Users/tom/miniconda3/envs/pro... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | astrofrog |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2eeb434949a926fad21064b4d395a54759f7a0b2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width