Title: black background on rasterized quadmesh in ps output · Issue #2473 · matplotlib/matplotlib · GitHub
Open Graph Title: black background on rasterized quadmesh in ps output · Issue #2473 · matplotlib/matplotlib
X Title: black background on rasterized quadmesh in ps output · Issue #2473 · matplotlib/matplotlib
Description: This reproduces the problem: X, Y = meshgrid(linspace(0, 1, 2048), linspace(0, 1, 1024)) Y *= 2 + sin(linspace(0, 2*np.pi, 2048)) C = np.sin(X + Y) pcolormesh(X, Y, C, rasterized=True) gcf().savefig('test.eps') gcf().savefig('test.png') ...
Open Graph Description: This reproduces the problem: X, Y = meshgrid(linspace(0, 1, 2048), linspace(0, 1, 1024)) Y *= 2 + sin(linspace(0, 2*np.pi, 2048)) C = np.sin(X + Y) pcolormesh(X, Y, C, rasterized=True) gcf().savefi...
X Description: This reproduces the problem: X, Y = meshgrid(linspace(0, 1, 2048), linspace(0, 1, 1024)) Y *= 2 + sin(linspace(0, 2*np.pi, 2048)) C = np.sin(X + Y) pcolormesh(X, Y, C, rasterized=True) gcf().savefi...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/2473
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"black background on rasterized quadmesh in ps output","articleBody":"This reproduces the problem:\n\n```\nX, Y = meshgrid(linspace(0, 1, 2048), linspace(0, 1, 1024))\nY *= 2 + sin(linspace(0, 2*np.pi, 2048))\nC = np.sin(X + Y)\npcolormesh(X, Y, C, rasterized=True)\ngcf().savefig('test.eps')\ngcf().savefig('test.png')\n```\n\nSaved as eps (converted the eps -\u003e png for upload with inkscape)\n\n\n\nsaved as png (and matches screen):\n\n\nMy guess is that the agg layer renders the parts of the bounding box around the artist where the quad-mesh isn't as transparent and iirc postscript can't deal with the alpha channel. I hope this is an easy fix (change the background to (1, 1, 1, 0)?), but I don't know the guts of the rendering layer well enough to tell what to change.\n","author":{"url":"https://github.com/tacaswell","@type":"Person","name":"tacaswell"},"datePublished":"2013-09-28T21:21:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2473/matplotlib/issues/2473"}
| 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:0baddc5f-aa5d-4682-ea55-590262a1df6f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AD78:24BC9A:A1856D:D518FF:6A5400E0 |
| html-safe-nonce | f7c1402262593cdc02d425500c28c4feb55ff2df02303d36f098b1a5e5c44fc7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDc4OjI0QkM5QTpBMTg1NkQ6RDUxOEZGOjZBNTQwMEUwIiwidmlzaXRvcl9pZCI6IjI5NjM5MDcwNjgxODMxODM1ODQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 64988ace79b458c40566883e447b6d512a58714adea770797345d19aef54f286 |
| hovercard-subject-tag | issue:20219462 |
| 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/2473/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1cfe1f5a918acea9a84bda0705761f76c4ffd6e9a9a60e86a8a4b8d011654875/matplotlib/matplotlib/issues/2473 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1cfe1f5a918acea9a84bda0705761f76c4ffd6e9a9a60e86a8a4b8d011654875/matplotlib/matplotlib/issues/2473 |
| og:image:alt | This reproduces the problem: X, Y = meshgrid(linspace(0, 1, 2048), linspace(0, 1, 1024)) Y *= 2 + sin(linspace(0, 2*np.pi, 2048)) C = np.sin(X + Y) pcolormesh(X, Y, C, rasterized=True) gcf().savefi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tacaswell |
| 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