Title: Plotting masked arrays with plot_surface() · Issue #487 · matplotlib/matplotlib · GitHub
Open Graph Title: Plotting masked arrays with plot_surface() · Issue #487 · matplotlib/matplotlib
X Title: Plotting masked arrays with plot_surface() · Issue #487 · matplotlib/matplotlib
Description: I would be nice if plot_surface() could plot masked arrays. Unlike imshow() which really plots the masked data, plot_surface() only plots the non-masked data. Here is an example: import numpy as np import pylab as mpl from mpl_toolkits.m...
Open Graph Description: I would be nice if plot_surface() could plot masked arrays. Unlike imshow() which really plots the masked data, plot_surface() only plots the non-masked data. Here is an example: import numpy as np...
X Description: I would be nice if plot_surface() could plot masked arrays. Unlike imshow() which really plots the masked data, plot_surface() only plots the non-masked data. Here is an example: import numpy as np...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/487
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Plotting masked arrays with plot_surface()","articleBody":"I would be nice if `plot_surface()` could plot masked arrays. Unlike `imshow()` which really plots the masked data,\n`plot_surface()` only plots the non-masked data.\nHere is an example:\n\n```\nimport numpy as np\nimport pylab as mpl\nfrom mpl_toolkits.mplot3d import axes3d\n\nx = np.arange(1,10,1)\ny = np.arange(1,10,1)\nx,y = np.meshgrid(x,y)\nz = x**3 + y**3 - 500\nz = np.ma.masked_array(z, z\u003c0)\n\ncm = mpl.cm.jet\n\nax1 = mpl.subplot(1,2,1, projection='3d')\nax1.plot_surface(x,y,z,\n rstride=1, cstride=1, linewidth=0,\n cmap=cm)\n\nax2 = mpl.subplot(1,2,2)\nax2.imshow(z, cmap=cm)\n\nmpl.show()\n```\n","author":{"url":"https://github.com/AndreasMatthias","@type":"Person","name":"AndreasMatthias"},"datePublished":"2011-09-22T20:36:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/487/matplotlib/issues/487"}
| 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:006df398-fde8-fa3d-22de-4ed44605adb9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DB98:3B8D43:131985:1A6A54:6A5517A5 |
| html-safe-nonce | 2b340de78d1ca7d0868bf946c522d469ca9271f99d7281b571eb5a18120fd78f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjk4OjNCOEQ0MzoxMzE5ODU6MUE2QTU0OjZBNTUxN0E1IiwidmlzaXRvcl9pZCI6IjIxOTM1OTAwMTA5MTMxNTYyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e8bfdaa645a244a90d9fda067cecb7f6054651f19374f02ca3e5bb664d4d8bb3 |
| hovercard-subject-tag | issue:1717754 |
| 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/487/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9d850348ca34018d7fff96a454e9bd8b521a3aaf0c7beb7b2fcea79387abdf59/matplotlib/matplotlib/issues/487 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9d850348ca34018d7fff96a454e9bd8b521a3aaf0c7beb7b2fcea79387abdf59/matplotlib/matplotlib/issues/487 |
| og:image:alt | I would be nice if plot_surface() could plot masked arrays. Unlike imshow() which really plots the masked data, plot_surface() only plots the non-masked data. Here is an example: import numpy as np... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | AndreasMatthias |
| hostname | github.com |
| expected-hostname | github.com |
| None | 682d273eacb2ac51680c6eb9c0b270f029f7ce74c32090f319083c34497e28a5 |
| 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 | 3b6d37c6470adadff4194742daaab9a817cc4980 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width