Title: imshow(..., alpha=0.5) produces different results in 2.x · Issue #6540 · matplotlib/matplotlib · GitHub
Open Graph Title: imshow(..., alpha=0.5) produces different results in 2.x · Issue #6540 · matplotlib/matplotlib
X Title: imshow(..., alpha=0.5) produces different results in 2.x · Issue #6540 · matplotlib/matplotlib
Description: I think I have whittled this down sufficiently from the Cartopy example that is failing. Running imshow(..., alpha=0.5) produces a different result in 2.0.0b1 vs. 1.5.1 (both installed via conda.) import numpy as np import matplotlib.pyp...
Open Graph Description: I think I have whittled this down sufficiently from the Cartopy example that is failing. Running imshow(..., alpha=0.5) produces a different result in 2.0.0b1 vs. 1.5.1 (both installed via conda.) ...
X Description: I think I have whittled this down sufficiently from the Cartopy example that is failing. Running imshow(..., alpha=0.5) produces a different result in 2.0.0b1 vs. 1.5.1 (both installed via conda.) ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/6540
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"imshow(..., alpha=0.5) produces different results in 2.x","articleBody":"I think I have whittled this down sufficiently from the Cartopy example that is failing. Running `imshow(..., alpha=0.5)` produces a different result in 2.0.0b1 vs. 1.5.1 (both installed via conda.)\n\n``` python\nimport numpy as np\nimport matplotlib.pyplot as plt\nimport matplotlib as mpl\n\n# mpl.style.use('classic')\n\nim = np.zeros((100, 100, 3), dtype=np.uint8)\nplt.imshow(im, extent=(1, 10, 1, 10), alpha=0.5)\nplt.xlim(0, 11)\nplt.ylim(0, 11)\n\nplt.savefig('imshow_alpha.png')\n```\n\nUsing 1.5.1:\n\nUsing 2.0.0b1:\n\nUsing 2.0.0b1 with the classic style:\n\n\nGIMP tells me that the first is 50%, while the latter two are 75%.\n","author":{"url":"https://github.com/QuLogic","@type":"Person","name":"QuLogic"},"datePublished":"2016-06-06T05:47:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/6540/matplotlib/issues/6540"}
| 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:148b322e-94a1-7037-82f8-043e10b51ef8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8618:1FEBBD:F8299:150ACD:6A526C93 |
| html-safe-nonce | 089280361f7bdf78a27d2be7cee1bea88d98790718dcc24522d26e007dd7729f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NjE4OjFGRUJCRDpGODI5OToxNTBBQ0Q6NkE1MjZDOTMiLCJ2aXNpdG9yX2lkIjoiMTczMDIwNzU4ODE5OTU5MTA1OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e1207241e39c0bdd4eb1bcd00f2e25b6e478e4f8902db4cf16d8daf641e8e882 |
| hovercard-subject-tag | issue:158604828 |
| 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/6540/issue_layout |
| twitter:image | https://opengraph.githubassets.com/78e4cab6fe8d67c91ee3421e54c87267b13b27aa9fc9d8aec8228c6918e2c72a/matplotlib/matplotlib/issues/6540 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/78e4cab6fe8d67c91ee3421e54c87267b13b27aa9fc9d8aec8228c6918e2c72a/matplotlib/matplotlib/issues/6540 |
| og:image:alt | I think I have whittled this down sufficiently from the Cartopy example that is failing. Running imshow(..., alpha=0.5) produces a different result in 2.0.0b1 vs. 1.5.1 (both installed via conda.) ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | QuLogic |
| 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