Title: EPS and `usetex` give blank output · Issue #16898 · matplotlib/matplotlib · GitHub
Open Graph Title: EPS and `usetex` give blank output · Issue #16898 · matplotlib/matplotlib
X Title: EPS and `usetex` give blank output · Issue #16898 · matplotlib/matplotlib
Description: Bug report Bug summary Saving EPS files with the usetex=True option gives a blank output. Code for reproduction import matplotlib as mpl mpl.use('ps') import matplotlib.pyplot as plt mpl.rc('text', usetex=True) fig, ax = plt.subplots() f...
Open Graph Description: Bug report Bug summary Saving EPS files with the usetex=True option gives a blank output. Code for reproduction import matplotlib as mpl mpl.use('ps') import matplotlib.pyplot as plt mpl.rc('text',...
X Description: Bug report Bug summary Saving EPS files with the usetex=True option gives a blank output. Code for reproduction import matplotlib as mpl mpl.use('ps') import matplotlib.pyplot as plt mpl.rc...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/16898
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"EPS and `usetex` give blank output","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\n**Bug summary**\r\nSaving EPS files with the `usetex=True` option gives a blank output.\r\n\u003c!--A short 1-2 sentences that succinctly describes the bug--\u003e\r\n\r\n**Code for reproduction**\r\n\r\n\u003c!--A minimum code snippet required to reproduce the bug.\r\nPlease make sure to minimize the number of dependencies required, and provide\r\nany necessary plotted data.\r\nAvoid using threads, as Matplotlib is (explicitly) not thread-safe.--\u003e\r\n\r\n```python\r\nimport matplotlib as mpl\r\nmpl.use('ps')\r\nimport matplotlib.pyplot as plt\r\n\r\nmpl.rc('text', usetex=True)\r\nfig, ax = plt.subplots()\r\nfig.savefig('output.eps')\r\n\r\n```\r\n\r\n**Actual outcome**\r\n[output-200094d4-bad.pdf](https://github.com/matplotlib/matplotlib/files/4377794/output-200094d4-bad.pdf) (converted from eps to pdf using epstopdf)\r\n\r\nThe EPS file appears to have the incorrect coordinates of the various elements.\r\n\r\n\u003c!--The output produced by the above code, which may be a screenshot, console output, etc.--\u003e\r\n\r\n**Expected outcome**\r\n\r\n[output-9e7a235-good.pdf](https://github.com/matplotlib/matplotlib/files/4377793/output-9e7a235-good.pdf)\r\n\r\nThis worked in version 3.1.3, but stopped working in 3.2.0. Git `bisect` shows that 200094d4d1c7c3f6dc50b3185cde64e810670cd6 introduced the issue.\r\n\u003c!--A description of the expected outcome from the code snippet--\u003e\r\n\u003c!--If this used to work in an earlier version of Matplotlib, please note the version it used to work on--\u003e\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: Linux 5.5.11-arch1-1\r\n * Matplotlib version: 3.2.1-1\r\n * Matplotlib backend: ps\r\n * Python version: 3.8.2-1\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\nMatplotlib installed with `sudo pacman -S python-matplotlib`\r\n\r\n","author":{"url":"https://github.com/TomJohnZ","@type":"Person","name":"TomJohnZ"},"datePublished":"2020-03-24T21:49:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/16898/matplotlib/issues/16898"}
| 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:dc68c1b3-9a0c-a588-0138-ff667eb57038 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A9D8:153FD3:3397280:4629E0B:6A53EE0D |
| html-safe-nonce | 06f3dd5529a99f445d0878dae177439144c05c93ce3428596e3fbba53c46a965 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOUQ4OjE1M0ZEMzozMzk3MjgwOjQ2MjlFMEI6NkE1M0VFMEQiLCJ2aXNpdG9yX2lkIjoiODYxMDAyNTc0MjEyNDk2OTQ4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | be9b9623b566ed729823d9f3b72d8061aac95516b7b768bf6afddb957d371479 |
| hovercard-subject-tag | issue:587300884 |
| 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/16898/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9cd5da200b5f28ba0d20935ec6161d2484f271d0259f6cfd1915844ee8b36fab/matplotlib/matplotlib/issues/16898 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9cd5da200b5f28ba0d20935ec6161d2484f271d0259f6cfd1915844ee8b36fab/matplotlib/matplotlib/issues/16898 |
| og:image:alt | Bug report Bug summary Saving EPS files with the usetex=True option gives a blank output. Code for reproduction import matplotlib as mpl mpl.use('ps') import matplotlib.pyplot as plt mpl.rc('text',... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | TomJohnZ |
| 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