Title: [MNT]: pyplot.xkcd() leads to findfont errors under Windows · Issue #27350 · matplotlib/matplotlib · GitHub
Open Graph Title: [MNT]: pyplot.xkcd() leads to findfont errors under Windows · Issue #27350 · matplotlib/matplotlib
X Title: [MNT]: pyplot.xkcd() leads to findfont errors under Windows · Issue #27350 · matplotlib/matplotlib
Description: Summary any plot with the xkcd style pyplot.xkcd() generates a bunch of errors from the findfont function under Windows even when fonts like "Comic Neue" are installed. I also regenerated the font cache and copied the font files into the...
Open Graph Description: Summary any plot with the xkcd style pyplot.xkcd() generates a bunch of errors from the findfont function under Windows even when fonts like "Comic Neue" are installed. I also regenerated the font ...
X Description: Summary any plot with the xkcd style pyplot.xkcd() generates a bunch of errors from the findfont function under Windows even when fonts like "Comic Neue" are installed. I also regenerated...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/27350
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[MNT]: pyplot.xkcd() leads to findfont errors under Windows ","articleBody":"### Summary\n\nany plot with the xkcd style `pyplot.xkcd()` generates a bunch of errors from the findfont function under Windows even when fonts like \"Comic Neue\" are installed. I also regenerated the font cache and copied the font files into the matplotlib site-packages font folder, but this did not help. (I am using mpl 3.8.2 on python 3.11)\r\n\r\nI am unsure if this is an issue under other OSs but I have the same issue under Win10 and Win11\n\n### Proposed fix\n\nIn the end I modified the `pyplot.py` file in the `xkcd` function, to get rid of the errors\r\n```\r\n rcParams.update({\r\n 'font.font-family': ['xkcd', 'xkcd Script', 'Comic Neue', 'Comic Sans MS'],\r\n...\r\n```\r\nto\r\n ```\r\n rcParams.update({\r\n 'font.sans-serif': ['xkcd', 'xkcd Script', 'Comic Neue', 'Comic Sans MS'],\r\n...\r\n```","author":{"url":"https://github.com/bkasel","@type":"Person","name":"bkasel"},"datePublished":"2023-11-20T08:25:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/27350/matplotlib/issues/27350"}
| 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:54950105-2d35-568a-202c-897a2fff6532 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AD36:29BECE:3EC0F8:52401F:6A516DFF |
| html-safe-nonce | 8b22d0a21130e3587ceec8e9b2a3a318ded4ac818f5de0e0360473484e5d97ad |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDM2OjI5QkVDRTozRUMwRjg6NTI0MDFGOjZBNTE2REZGIiwidmlzaXRvcl9pZCI6Ijc5MjA0MDY5MjUyODc3MTQzMDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 38aa58621a3bca33ac6e280a02779798ff6fa04c72b26053e4afe70d3d2e2e5b |
| hovercard-subject-tag | issue:2001622004 |
| 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/27350/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a4d670091cc5137164e88d809c1db90506cab8a2b18f46d6f6f915d9a81c8b71/matplotlib/matplotlib/issues/27350 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a4d670091cc5137164e88d809c1db90506cab8a2b18f46d6f6f915d9a81c8b71/matplotlib/matplotlib/issues/27350 |
| og:image:alt | Summary any plot with the xkcd style pyplot.xkcd() generates a bunch of errors from the findfont function under Windows even when fonts like "Comic Neue" are installed. I also regenerated the font ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bkasel |
| 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 | 60eaaf6d4dbaa817031b556aebd8a0a7eeb81b97 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width