Title: corrupt eps output on python3 · Issue #3494 · matplotlib/matplotlib · GitHub
Open Graph Title: corrupt eps output on python3 · Issue #3494 · matplotlib/matplotlib
X Title: corrupt eps output on python3 · Issue #3494 · matplotlib/matplotlib
Description: the following script works fine on python 2.7.8, however it produces a non valid eps file on python 3.4.1. import numpy as np import matplotlib from matplotlib import pyplot as plt if __name__ == "__main__": print ("Using matplotlib v%s"...
Open Graph Description: the following script works fine on python 2.7.8, however it produces a non valid eps file on python 3.4.1. import numpy as np import matplotlib from matplotlib import pyplot as plt if __name__ == "...
X Description: the following script works fine on python 2.7.8, however it produces a non valid eps file on python 3.4.1. import numpy as np import matplotlib from matplotlib import pyplot as plt if __name__ == &...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/3494
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"corrupt eps output on python3","articleBody":"the following script works fine on python 2.7.8, however it produces a non valid eps file on python 3.4.1.\n\n```\nimport numpy as np\nimport matplotlib\nfrom matplotlib import pyplot as plt\n\nif __name__ == \"__main__\":\n print (\"Using matplotlib v%s\" %matplotlib.__version__)\n x = np.linspace(0, 10)\n y = np.sin(x)\n\n plt.figure()\n plt.plot(x, y)\n plt.savefig(\"out.eps\", format='eps')\n plt.show()\n```\n\nThe two attachements following are the two outputs generated by python2 and python3 respectively (I changed the file extension to png to be able to upload them, but they are indeed eps files).\n\n\n\nWith a diff of the two files, and some manual editing, I found that the line responsible for the malfunctioning is the following\n\n```\n377c377 \n\u003c /DejaVuSans findfont \n--- \n> /b'DejaVuSans' findfont\n```\n","author":{"url":"https://github.com/japs","@type":"Person","name":"japs"},"datePublished":"2014-09-10T12:29:27Z","url":"https://github.com/matplotlib/matplotlib/issues/3494"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:88905167-7118-6819-3b35-19fb897d1731 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B256:D0B9B:16A689F:1ECEF8A:6B068320 |
| html-safe-nonce | a7c0d975ee3a666a3bd2b0f936248d3227b784351c631dc40e4705cbd0db6a2b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjU2OkQwQjlCOjE2QTY4OUY6MUVDRUY4QTo2QjA2ODMyMCIsInZpc2l0b3JfaWQiOiI1OTMwMDY4ODc2NDYwNDU4Nzg0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ab22a95665472d76b566501ce10e9c06d7a96b3e6b3ac9afea88707300046b38 |
| hovercard-subject-tag | issue:42407217 |
| 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/3494/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cdda87791e2454b687f32b6ad57389426c9e3b697b2696241146fbc5f4736ab2/matplotlib/matplotlib/issues/3494 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cdda87791e2454b687f32b6ad57389426c9e3b697b2696241146fbc5f4736ab2/matplotlib/matplotlib/issues/3494 |
| og:image:alt | the following script works fine on python 2.7.8, however it produces a non valid eps file on python 3.4.1. import numpy as np import matplotlib from matplotlib import pyplot as plt if __name__ == "... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | japs |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a |
| 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 | 6d3909414814ff86ce7da4c51a0f4918a13fb41b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width