Title: EPS + usetex is broken · Issue #17253 · matplotlib/matplotlib · GitHub
Open Graph Title: EPS + usetex is broken · Issue #17253 · matplotlib/matplotlib
X Title: EPS + usetex is broken · Issue #17253 · matplotlib/matplotlib
Description: Bug report Bug summary I was testing #131, and it produces an empty plot now. Removing the usetex rc change produces a working plot. Code for reproduction import matplotlib as mpl import matplotlib.pyplot as plt from matplotlib import rc...
Open Graph Description: Bug report Bug summary I was testing #131, and it produces an empty plot now. Removing the usetex rc change produces a working plot. Code for reproduction import matplotlib as mpl import matplotlib...
X Description: Bug report Bug summary I was testing #131, and it produces an empty plot now. Removing the usetex rc change produces a working plot. Code for reproduction import matplotlib as mpl import matplotlib...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/17253
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"EPS + usetex is broken","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\n\r\nI was testing #131, and it produces an empty plot now. Removing the `usetex` rc change produces a working plot.\r\n\r\n**Code for reproduction**\r\n\r\n```python\r\nimport matplotlib as mpl\r\nimport matplotlib.pyplot as plt\r\nfrom matplotlib import rc\r\n\r\nrc('text', usetex=True)\r\n\r\ng1, = plt.plot([1,2,3,4],[500,600,700,800])\r\ng2, = plt.plot([1,2,3,4],[700,300,700,200])\r\ng3, = plt.plot([1,2,3,4],[800,600,900,800])\r\n\r\nplt.figlegend([g1,g2,g3],['test1','test2','test3'],'upper left')\r\n\r\nplt.savefig('image.png')\r\nplt.savefig('image.eps')\r\n\r\nplt.show()\r\n```\r\n\r\nBisect says that it broke at 200094d and #14833. cc @anntzer \r\n\r\nAnd a diff shows that the media box is completely wrong:\r\n```diff\r\n- \u003c\u003c/Type/Page/MediaBox [0 0 460.8 345.6] \r\n+ \u003c\u003c/Type/Page/MediaBox [0 0 5184 5184] \r\n```","author":{"url":"https://github.com/QuLogic","@type":"Person","name":"QuLogic"},"datePublished":"2020-04-28T03:21:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/17253/matplotlib/issues/17253"}
| 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:c5269912-d551-5811-efbd-5b82657bb496 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A220:211953:12A2F56:1B30EE1:6A54C40B |
| html-safe-nonce | 40a056b98e08dc7734cd8813a2bd9d514aca01048229e1a1f47880ecc3b5396a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjIwOjIxMTk1MzoxMkEyRjU2OjFCMzBFRTE6NkE1NEM0MEIiLCJ2aXNpdG9yX2lkIjoiNTM4OTgzMDU0MjU4NTAyMTQ1MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1be43d18ea5df6a4d1f0d7900c29e6b738ba79d53c2f6e06b10e4c7399b667fa |
| hovercard-subject-tag | issue:607994427 |
| 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/17253/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8c137e5b70af0d97258af2d229923f0fdf8adbd8fe3c75a44e54a26b23ed6138/matplotlib/matplotlib/issues/17253 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8c137e5b70af0d97258af2d229923f0fdf8adbd8fe3c75a44e54a26b23ed6138/matplotlib/matplotlib/issues/17253 |
| og:image:alt | Bug report Bug summary I was testing #131, and it produces an empty plot now. Removing the usetex rc change produces a working plot. Code for reproduction import matplotlib as mpl import matplotlib... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | QuLogic |
| 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 | 69f9664dd5e7a82ba8ab1b4cb7f5a2f09333ab38 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width