Title: Incorrect PDF output with rasterized=True · Issue #3371 · matplotlib/matplotlib · GitHub
Open Graph Title: Incorrect PDF output with rasterized=True · Issue #3371 · matplotlib/matplotlib
X Title: Incorrect PDF output with rasterized=True · Issue #3371 · matplotlib/matplotlib
Description: The following example demonstrates an issue with the PDF output when setting rasterized=True: import numpy as np import matplotlib.pyplot as plt from matplotlib.collections import LineCollection fig = plt.figure() ax = fig.add_subplot(1,...
Open Graph Description: The following example demonstrates an issue with the PDF output when setting rasterized=True: import numpy as np import matplotlib.pyplot as plt from matplotlib.collections import LineCollection fi...
X Description: The following example demonstrates an issue with the PDF output when setting rasterized=True: import numpy as np import matplotlib.pyplot as plt from matplotlib.collections import LineCollection fi...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/3371
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Incorrect PDF output with rasterized=True","articleBody":"The following example demonstrates an issue with the PDF output when setting `rasterized=True`:\n\n```\nimport numpy as np\nimport matplotlib.pyplot as plt\nfrom matplotlib.collections import LineCollection\n\nfig = plt.figure()\nax = fig.add_subplot(1,1,1)\nz = np.random.random((100000, 3, 2))\nlc = LineCollection(z, rasterized=True, alpha=0.01, color='k')\nax.add_collection(lc)\nfig.savefig('test.png')\nfig.savefig('test.pdf')\n```\n\nThe PNG output is:\n\n\n\nThe PDF output (converted to PNG, looks the same), is:\n\n\n\nFor some reason, the PDF output appears gray not black in the center.\n","author":{"url":"https://github.com/astrofrog","@type":"Person","name":"astrofrog"},"datePublished":"2014-08-15T14:28:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":30},"url":"https://github.com/3371/matplotlib/issues/3371"}
| 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:0ebd0991-21b6-08fa-d8e3-ca9528591a3f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BBAA:166AAB:2642EA2:342AFC1:6A53A5A6 |
| html-safe-nonce | 039daa81df8741b6dc4b10156eef84dd5e8abbb528d5711d73cac4d453403145 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkFBOjE2NkFBQjoyNjQyRUEyOjM0MkFGQzE6NkE1M0E1QTYiLCJ2aXNpdG9yX2lkIjoiMzA1NjE4OTc2NjI5NzE2NzI3MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4a0f3bcb5a0e7b637180a0809f24d554c1dbcc1e022ceb6a0508e47bdf4b4968 |
| hovercard-subject-tag | issue:40352009 |
| 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/3371/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3e82b7e05c67ff961bd2f250cbdc756544e1b82897132076d8a5dfbd3604cb6e/matplotlib/matplotlib/issues/3371 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3e82b7e05c67ff961bd2f250cbdc756544e1b82897132076d8a5dfbd3604cb6e/matplotlib/matplotlib/issues/3371 |
| og:image:alt | The following example demonstrates an issue with the PDF output when setting rasterized=True: import numpy as np import matplotlib.pyplot as plt from matplotlib.collections import LineCollection fi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | astrofrog |
| 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 | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width