Title: Computer Modern Glyph Error · Issue #17007 · matplotlib/matplotlib · GitHub
Open Graph Title: Computer Modern Glyph Error · Issue #17007 · matplotlib/matplotlib
X Title: Computer Modern Glyph Error · Issue #17007 · matplotlib/matplotlib
Description: Bug report Trying to use computer modern roman (cmr10) font in plot. Getting an error which prevents minus sign rendering in plot. import matplotlib as mpl import matplotlib.pyplot as plt mpl.rc('font',family = 'serif', serif = 'cmr10') ...
Open Graph Description: Bug report Trying to use computer modern roman (cmr10) font in plot. Getting an error which prevents minus sign rendering in plot. import matplotlib as mpl import matplotlib.pyplot as plt mpl.rc('f...
X Description: Bug report Trying to use computer modern roman (cmr10) font in plot. Getting an error which prevents minus sign rendering in plot. import matplotlib as mpl import matplotlib.pyplot as plt mpl.rc(...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/17007
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Computer Modern Glyph Error","articleBody":"\u003c!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--\u003e\r\n\u003c!--You can feel free to delete the sections that do not apply.--\u003e\r\n\r\n### Bug report\r\n\r\nTrying to use computer modern roman (cmr10) font in plot. Getting an error which prevents minus sign rendering in plot.\r\n\r\n```\r\nimport matplotlib as mpl\r\nimport matplotlib.pyplot as plt\r\n\r\nmpl.rc('font',family = 'serif', serif = 'cmr10')\r\nfig, ax = plt.subplots()\r\n\r\nax.set_title('This is a special font:')\r\nax.set_xlabel(r'This is the default font $\\alpha\\beta\\gamma$')\r\nax.set_yticks([-1,0,1])\r\nplt.show()\r\n```\r\n\r\n\r\n\r\nOutput:\r\n\r\n```\r\nC:\\ProgramData\\Anaconda3\\lib\\site-packages\\matplotlib\\backends\\backend_agg.py:214: RuntimeWarning: Glyph 8722 missing from current font.\r\n font.set_text(s, 0.0, flags=flags)\r\nC:\\ProgramData\\Anaconda3\\lib\\site-packages\\matplotlib\\backends\\backend_agg.py:183: RuntimeWarning: Glyph 8722 missing from current font.\r\n font.set_text(s, 0, flags=flags)\r\n```\r\n\r\n**Expected outcome**\r\nCorrect rendering of symbols\r\n\r\n**Matplotlib version**\r\n\u003c!--Please specify your platform and versions of the relevant libraries you are using:--\u003e\r\n * Operating system: Cygwin / Windows10 Enterprise 64 Bit\r\n * Matplotlib version: 3.2.1\r\n * Matplotlib backend (`print(matplotlib.get_backend())`):\r\n * Python version: 3.7.7\r\n * Jupyter version (if applicable): N/A\r\n * Other libraries: \r\n\r\n\u003c!--Please tell us how you installed matplotlib and python e.g., from source, pip, conda--\u003e\r\n\u003c!--If you installed from conda, please specify which channel you used if not the default--\u003e\r\nInstalled matplotlib via anaconda on default channel\r\n","author":{"url":"https://github.com/roussel-ryan","@type":"Person","name":"roussel-ryan"},"datePublished":"2020-04-02T19:25:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/17007/matplotlib/issues/17007"}
| 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:5416b53f-d22b-21b3-3946-243357f133ec |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D1CA:37F405:B00EDF:EABE35:6A52BA92 |
| html-safe-nonce | 657fba62f334df05cf3df49830c4e17496ed26ba59be102046331c77dcaf9f96 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMUNBOjM3RjQwNTpCMDBFREY6RUFCRTM1OjZBNTJCQTkyIiwidmlzaXRvcl9pZCI6IjM3MjgxNzE2MDQ4NzU4NTI0MzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 72808142c0dbebd30408b4d340f38885b3b621bc42c81d9014e2645ab4f0aefa |
| hovercard-subject-tag | issue:592871833 |
| 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/17007/issue_layout |
| twitter:image | https://opengraph.githubassets.com/641e5b09b047e8b87d69f4ad6a614eaa5fb7922006b18275cdcd5e49fccec4a6/matplotlib/matplotlib/issues/17007 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/641e5b09b047e8b87d69f4ad6a614eaa5fb7922006b18275cdcd5e49fccec4a6/matplotlib/matplotlib/issues/17007 |
| og:image:alt | Bug report Trying to use computer modern roman (cmr10) font in plot. Getting an error which prevents minus sign rendering in plot. import matplotlib as mpl import matplotlib.pyplot as plt mpl.rc('f... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | roussel-ryan |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width