Title: saving pdf breaks with invisible markers? · Issue #8142 · matplotlib/matplotlib · GitHub
Open Graph Title: saving pdf breaks with invisible markers? · Issue #8142 · matplotlib/matplotlib
X Title: saving pdf breaks with invisible markers? · Issue #8142 · matplotlib/matplotlib
Description: import matplotlib.pyplot as plt import numpy as np plt.plot(np.sin(np.linspace(-5, 5, 100)), 'v', c='none') plt.savefig("asdf.pdf") TypeError: 'NoneType' object is not subscriptable This happened to me because I was using matplotlib 1.5 ...
Open Graph Description: import matplotlib.pyplot as plt import numpy as np plt.plot(np.sin(np.linspace(-5, 5, 100)), 'v', c='none') plt.savefig("asdf.pdf") TypeError: 'NoneType' object is not subscriptable This happened t...
X Description: import matplotlib.pyplot as plt import numpy as np plt.plot(np.sin(np.linspace(-5, 5, 100)), 'v', c='none') plt.savefig("asdf.pdf") TypeError: 'NoneType' object is...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/8142
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"saving pdf breaks with invisible markers?","articleBody":"```python\r\nimport matplotlib.pyplot as plt\r\nimport numpy as np\r\nplt.plot(np.sin(np.linspace(-5, 5, 100)), 'v', c='none')\r\nplt.savefig(\"asdf.pdf\")\r\n```\r\n\u003e TypeError: 'NoneType' object is not subscriptable\r\n\r\nThis happened to me because I was using matplotlib 1.5 code, where this was actually not invisible.\r\nChanging ``markeredgecolor='k'`` (which was the default before) fixes the problem. But that is a pretty surprising error and might hint at something going wrong somewhere?\r\n\r\nIn particular, png rendering works fine, only pdf errors.","author":{"url":"https://github.com/amueller","@type":"Person","name":"amueller"},"datePublished":"2017-02-24T18:05:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/8142/matplotlib/issues/8142"}
| 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:e0f23d42-544b-2cf5-8783-07df236f7ea3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9F22:25F3E7:182AD80:211BBA0:6A53EAAB |
| html-safe-nonce | e04eb15a770fadc9ff4bbff1f0ecca3d7abd9fd6b04e843b531250da281662f9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjIyOjI1RjNFNzoxODJBRDgwOjIxMUJCQTA6NkE1M0VBQUIiLCJ2aXNpdG9yX2lkIjoiODQyNTQ4MDYyMjQzNzU1ODk1NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ef0cbfedb9a14c799375d8ecb1954b3e59e9bf20e21a8bb549dd796a04576b92 |
| hovercard-subject-tag | issue:210118199 |
| 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/8142/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cb88c3c932900969cd62b0916b343c1fde99d48c956e36bf2b8c8b258b2affbb/matplotlib/matplotlib/issues/8142 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cb88c3c932900969cd62b0916b343c1fde99d48c956e36bf2b8c8b258b2affbb/matplotlib/matplotlib/issues/8142 |
| og:image:alt | import matplotlib.pyplot as plt import numpy as np plt.plot(np.sin(np.linspace(-5, 5, 100)), 'v', c='none') plt.savefig("asdf.pdf") TypeError: 'NoneType' object is not subscriptable This happened t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | amueller |
| 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