Title: [Bug]: Matplotlib font error for negative data · Issue #28898 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: Matplotlib font error for negative data · Issue #28898 · matplotlib/matplotlib
X Title: [Bug]: Matplotlib font error for negative data · Issue #28898 · matplotlib/matplotlib
Description: Bug summary When using a combination of text.usetex: True, font.family: 'serif', font.serif = 'Times', attempting to plot negative data results in a LookupError of the required font Code for reproduction import matplotlib.pyplot as plt p...
Open Graph Description: Bug summary When using a combination of text.usetex: True, font.family: 'serif', font.serif = 'Times', attempting to plot negative data results in a LookupError of the required font Code for reprod...
X Description: Bug summary When using a combination of text.usetex: True, font.family: 'serif', font.serif = 'Times', attempting to plot negative data results in a LookupError of the required font...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/28898
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Matplotlib font error for negative data","articleBody":"### Bug summary\n\nWhen using a combination of text.usetex: True, font.family: 'serif', font.serif = 'Times', attempting to plot negative data results in a LookupError of the required font\n\n### Code for reproduction\n\n```Python\nimport matplotlib.pyplot as plt\r\n\r\nplt.rcParams['text.usetex'] = True\r\nplt.rcParams['font.family'] = 'serif'\r\nplt.rcParams['font.serif'] = 'Times'\r\n\r\nfig, ax = plt.subplots()\r\nax.plot([-1, 2, 3])\r\nfig.savefig('test.pdf')\n```\n\n\n### Actual outcome\n\nLookupError: An associated PostScript font (required by Matplotlib) could not be found for TeX font 'zptmcm7y' in 'C:/Users/XXX/AppData/Local/MiKTeX/fonts/map/pdftex/pdftex.map'; this problem can often be solved by installing a suitable PostScript font package in your TeX package manager\n\n### Expected outcome\n\nA plot with the data in tex font\n\n### Additional information\n\nInstalling or re-installing a postscript font package using MikTeX did not solve the issue\n\n### Operating system\n\nWindows 10\n\n### Matplotlib Version\n\n3.9.2\n\n### Matplotlib Backend\n\nmodule://backend_interagg\n\n### Python version\n\n3.12.1\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\npip","author":{"url":"https://github.com/JeltevL","@type":"Person","name":"JeltevL"},"datePublished":"2024-09-27T07:54:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/28898/matplotlib/issues/28898"}
| 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:f80ccf85-8159-a926-710b-ddf69d7792f3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 860A:321E68:3CBB6D:57C4C7:6A55DD7E |
| html-safe-nonce | 839eecded89b7ad25a3007bea2159a0867c1c0c44b2dff72882ab77d51d6743d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NjBBOjMyMUU2ODozQ0JCNkQ6NTdDNEM3OjZBNTVERDdFIiwidmlzaXRvcl9pZCI6Ijg5MTYzODAyNzAzODA1NzIwMzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 29c7ecc99be85fde0accab5aa3cd30888edda4fb068d49c129e38a9dddd49326 |
| hovercard-subject-tag | issue:2552265558 |
| 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/28898/issue_layout |
| twitter:image | https://opengraph.githubassets.com/31a16b6cd7be04b44d5362965d1c0907a9c564470ab3fe3dac35af9a7aa4222e/matplotlib/matplotlib/issues/28898 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/31a16b6cd7be04b44d5362965d1c0907a9c564470ab3fe3dac35af9a7aa4222e/matplotlib/matplotlib/issues/28898 |
| og:image:alt | Bug summary When using a combination of text.usetex: True, font.family: 'serif', font.serif = 'Times', attempting to plot negative data results in a LookupError of the required font Code for reprod... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JeltevL |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| 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 | 3725c7f9b2a6e3a27ef57c5aed13428c0f65e045 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width