Title: imshow interpolation uses masked values · Issue #8012 · matplotlib/matplotlib · GitHub
Open Graph Title: imshow interpolation uses masked values · Issue #8012 · matplotlib/matplotlib
X Title: imshow interpolation uses masked values · Issue #8012 · matplotlib/matplotlib
Description: Bug report I recently upgraded to v2.0.0 and noticed that the new imshow interpolation is not honoring masked values. This is likely related to the new edge handling, described here: http://matplotlib.org/examples/pylab_examples/image_in...
Open Graph Description: Bug report I recently upgraded to v2.0.0 and noticed that the new imshow interpolation is not honoring masked values. This is likely related to the new edge handling, described here: http://matplot...
X Description: Bug report I recently upgraded to v2.0.0 and noticed that the new imshow interpolation is not honoring masked values. This is likely related to the new edge handling, described here: http://matplot...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/8012
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"imshow interpolation uses masked values","articleBody":"### Bug report\r\n\r\nI recently upgraded to v2.0.0 and noticed that the new imshow interpolation is not honoring masked values. This is likely related to the new edge handling, described here: http://matplotlib.org/examples/pylab_examples/image_interp.html\r\n\r\n**Code for reproduction**\r\n\r\n```python\r\na = np.random.random((7,7))*1000\r\nndv = -9999.0\r\na[2:4,1:5] = ndv\r\nam = np.ma.masked_equal(a, ndv)\r\n\r\nplt.figure()\r\n#Plot with no interpolation, looks fine\r\nplt.imshow(am, interpolation='none')\r\nplt.title(\"interpolation='none'\")\r\n#Plot with bilinear interpolation, the -9999.0 values are used \r\nplt.imshow(am, interpolation='bilinear')\r\nplt.title(\"interpolation='bilinear'\")\r\n```\r\n\r\n**Actual outcome**\r\n\r\n\r\n\r\n\r\n\r\n**Expected outcome**\r\n\r\nThe interpolation should ignore masked values as in previous versions.\r\n\r\n**Matplotlib version**\r\n\r\n- Matplotlib v2.0.0, Python 2.7.13, OSX\r\n- installed from pip\r\n\r\n","author":{"url":"https://github.com/dshean","@type":"Person","name":"dshean"},"datePublished":"2017-02-03T03:30:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/8012/matplotlib/issues/8012"}
| 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:0e6536a0-8444-60ae-1aae-146a2885251c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CEF2:166AAB:2B64F1:3A1FA0:6A52EA77 |
| html-safe-nonce | 6a17b242596bdd4e2db400031866d3991b83ff0af0a5a3a0f9451df087157609 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRUYyOjE2NkFBQjoyQjY0RjE6M0ExRkEwOjZBNTJFQTc3IiwidmlzaXRvcl9pZCI6IjYwMzMxMzYwNDQxNjk0MjM0NzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9a8eb11fabcf9cfb95fa2972b7677a57645fa8d1732d70cf3a9466d2322bbf30 |
| hovercard-subject-tag | issue:205063598 |
| 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/8012/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1931e766b1ffb54311757413f31d054ca8249c578c8a9c0543eaf1f02d7ab245/matplotlib/matplotlib/issues/8012 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1931e766b1ffb54311757413f31d054ca8249c578c8a9c0543eaf1f02d7ab245/matplotlib/matplotlib/issues/8012 |
| og:image:alt | Bug report I recently upgraded to v2.0.0 and noticed that the new imshow interpolation is not honoring masked values. This is likely related to the new edge handling, described here: http://matplot... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dshean |
| 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