Title: imshow() producing "inverted" colors since 3.0.3 · Issue #14293 · matplotlib/matplotlib · GitHub
Open Graph Title: imshow() producing "inverted" colors since 3.0.3 · Issue #14293 · matplotlib/matplotlib
X Title: imshow() producing "inverted" colors since 3.0.3 · Issue #14293 · matplotlib/matplotlib
Description: Bug report Bug summary Since 3.0.3 imshow() produces "inverted" colors, instead of just including the image as is. Code for reproduction from PIL import Image import matplotlib.pyplot as plt img = Image.open("map.png") plt.imshow(img) pl...
Open Graph Description: Bug report Bug summary Since 3.0.3 imshow() produces "inverted" colors, instead of just including the image as is. Code for reproduction from PIL import Image import matplotlib.pyplot as plt img = ...
X Description: Bug report Bug summary Since 3.0.3 imshow() produces "inverted" colors, instead of just including the image as is. Code for reproduction from PIL import Image import matplotlib.pyplot as ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/14293
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"imshow() producing \"inverted\" colors since 3.0.3","articleBody":"\u003c!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--\u003e\r\n\u003c!--You can feel free to delete the sections that do not apply.--\u003e\r\n\r\n### Bug report\r\n\r\n**Bug summary**\r\n\r\nSince 3.0.3 imshow() produces \"inverted\" colors, instead of just including the image as is.\r\n\r\n**Code for reproduction**\r\n\r\n```python\r\nfrom PIL import Image\r\nimport matplotlib.pyplot as plt\r\n\r\nimg = Image.open(\"map.png\")\r\nplt.imshow(img)\r\nplt.savefig(\"plot.png\")\r\n```\r\n\r\nwith this image as input:\r\n\r\n\r\n**Actual outcome**\r\n\r\n\r\n**Expected outcome**\r\n\r\n(until 3.0.2)\r\n\r\n**Matplotlib version**\r\n\u003c!--Please specify your platform and versions of the relevant libraries you are using:--\u003e\r\n * Operating system: win 7/10\r\n * Matplotlib version: 3.0.3, 3.1.0\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): TkAgg\r\n * Python version: 3.7.2\r\n * Jupyter version (if applicable):\r\n * Other libraries: Pillow (6.0.0)\r\n\r\n\u003c!--Please tell us how you installed matplotlib and python e.g., from source, pip, conda--\u003e\r\n\u003c!--If you installed from conda, please specify which channel you used if not the default--\u003e\r\nmatplotlib installed from pip\r\n","author":{"url":"https://github.com/cyclehome","@type":"Person","name":"cyclehome"},"datePublished":"2019-05-21T14:32:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/14293/matplotlib/issues/14293"}
| 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:f806e608-cea3-7c9a-384b-17a076544e28 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CF2E:3EF8E4:2E42C2:3F9F31:6A5846A1 |
| html-safe-nonce | 50500fe908a94d6208e85befb6783eecfbf34cd1357877a9409039ce0022d2d0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjJFOjNFRjhFNDoyRTQyQzI6M0Y5RjMxOjZBNTg0NkExIiwidmlzaXRvcl9pZCI6IjY1OTczODYxMTQyNTYzNTcwMjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cf5e08321705f9ccf2c1c0f129c768e40cfbfe0bbc389803d6c42066419c6ca9 |
| hovercard-subject-tag | issue:446654343 |
| 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/14293/issue_layout |
| twitter:image | https://opengraph.githubassets.com/91e2e9d3bfb107ca0cac10b6bb899b92c07843594e752d74d5d3fefc79e52aa2/matplotlib/matplotlib/issues/14293 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/91e2e9d3bfb107ca0cac10b6bb899b92c07843594e752d74d5d3fefc79e52aa2/matplotlib/matplotlib/issues/14293 |
| og:image:alt | Bug report Bug summary Since 3.0.3 imshow() produces "inverted" colors, instead of just including the image as is. Code for reproduction from PIL import Image import matplotlib.pyplot as plt img = ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cyclehome |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| 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 | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width