Title: Image interpolation wrong for pixel values exceeding vmax · Issue #8631 · matplotlib/matplotlib · GitHub
Open Graph Title: Image interpolation wrong for pixel values exceeding vmax · Issue #8631 · matplotlib/matplotlib
X Title: Image interpolation wrong for pixel values exceeding vmax · Issue #8631 · matplotlib/matplotlib
Description: Bug report Bug summary With imshow(), image interpolation gives wrong results near pixels with values exceeding vmax. A large rectangular region (given by the interpolation kernel size) is filled with color corresponding to maximum value...
Open Graph Description: Bug report Bug summary With imshow(), image interpolation gives wrong results near pixels with values exceeding vmax. A large rectangular region (given by the interpolation kernel size) is filled w...
X Description: Bug report Bug summary With imshow(), image interpolation gives wrong results near pixels with values exceeding vmax. A large rectangular region (given by the interpolation kernel size) is filled w...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/8631
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Image interpolation wrong for pixel values exceeding vmax ","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\nWith imshow(), image interpolation gives wrong results near pixels with values exceeding vmax. A large rectangular region (given by the interpolation kernel size) is filled with color corresponding to maximum value.\r\n\r\n\u003c!--A short 1-2 sentences that succinctly describes the bug--\u003e\r\n\r\n**Code for reproduction**\r\n\r\n\u003c!--A minimum code snippet required to reproduce the bug, also minimizing the number of dependencies required--\u003e\r\n\r\n```python\r\nt = zeros((50, 50))\r\nt[10, 10] = 1\r\nt[10, 20] = 2\r\nimshow(t, vmin=0, vmax=1, interpolation='lanczos')\r\n```\r\n[see gist](https://gist.github.com/geggo/b40da1b69b2a1cd37f8a8454423d3495)\r\n\r\n**Actual outcome**\r\n\r\n\u003cimg width=\"253\" alt=\"download 2\" src=\"https://cloud.githubusercontent.com/assets/968371/26103864/b0f02152-3a3b-11e7-8ba2-ba793a9a1be9.png\"\u003e\r\n\r\n\u003c!--The output produced by the above code, which may be a screenshot, console output, etc.--\u003e\r\n\r\n\r\n**Expected outcome**\r\n\r\n\u003c!--A description of the expected outcome from the code snippet--\u003e\r\n\u003c!--If this used to work in an earlier version of Matplotlib, please note the version it used to work on--\u003e\r\n\r\nOk with matplotlib 2.0.0\r\n\r\n\u003cimg width=\"253\" alt=\"download\" src=\"https://cloud.githubusercontent.com/assets/968371/26103723/2271b1de-3a3b-11e7-9497-501d50a59101.png\"\u003e\r\n\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: macOS\r\n * Matplotlib Version: 2.0.1, 2.0.2\r\n * Python Version: 2.7\r\n * Jupyter Version (if applicable):\r\n * Other Libraries: \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\n\r\nmatplotlib installed via conda-forge\r\n","author":{"url":"https://github.com/geggo","@type":"Person","name":"geggo"},"datePublished":"2017-05-16T11:31:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":16},"url":"https://github.com/8631/matplotlib/issues/8631"}
| 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:9ba6c292-79e3-01b0-31f4-a7d05ac5cf18 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E1C8:F87E9:999723:D042B3:6A5200A1 |
| html-safe-nonce | 8148a35cf4ba1c506b56823aeee3ddee3bd47edf18243499bb82de1ddbe68321 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMUM4OkY4N0U5Ojk5OTcyMzpEMDQyQjM6NkE1MjAwQTEiLCJ2aXNpdG9yX2lkIjoiMTQ4NjAzMDc1NjAyNzQzMzEyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a3633038489ced5c5a6bacfb8a95a065504a26fe4218138de41ec9ccfb02d61d |
| hovercard-subject-tag | issue:228999837 |
| 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/8631/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a467edb3bfdb0b992fda9a0b9d795df9c95eefd22eecf3b7d52db66ca8ec191c/matplotlib/matplotlib/issues/8631 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a467edb3bfdb0b992fda9a0b9d795df9c95eefd22eecf3b7d52db66ca8ec191c/matplotlib/matplotlib/issues/8631 |
| og:image:alt | Bug report Bug summary With imshow(), image interpolation gives wrong results near pixels with values exceeding vmax. A large rectangular region (given by the interpolation kernel size) is filled w... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | geggo |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width