Title: [ENH]: Consider bilinear interpolation for pcolormesh · Issue #32518 · matplotlib/matplotlib · GitHub
Open Graph Title: [ENH]: Consider bilinear interpolation for pcolormesh · Issue #32518 · matplotlib/matplotlib
X Title: [ENH]: Consider bilinear interpolation for pcolormesh · Issue #32518 · matplotlib/matplotlib
Description: Problem Currently the only "interpolating" shading of pcolormesh() is "gouraud". This is somewhat special: It splits the quadrilateral into two triangles and uses Gouraud shading for each. If the z values of the corners are not in a plan...
Open Graph Description: Problem Currently the only "interpolating" shading of pcolormesh() is "gouraud". This is somewhat special: It splits the quadrilateral into two triangles and uses Gouraud shading for each. If the z...
X Description: Problem Currently the only "interpolating" shading of pcolormesh() is "gouraud". This is somewhat special: It splits the quadrilateral into two triangles and uses Gouraud shadin...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/32518
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[ENH]: Consider bilinear interpolation for pcolormesh","articleBody":"### Problem\n\nCurrently the only \"interpolating\" shading of `pcolormesh()` is \"gouraud\". This is somewhat special: It splits the quadrilateral into two triangles and uses Gouraud shading for each. If the z values of the corners are not in a plane, this produces characteristic patterns and the result will depend on how the two triangles are chosen; e.g.\n\n```python\nimport matplotlib.pyplot as plt\nimport numpy as np\n\nx = np.arange(6)\ny = np.arange(6)\nX, Y = np.meshgrid(x, y)\nZ = X + 2*Y\nZ[2,3] = 15\nplt.pcolormesh(X, Y, Z, shading=\"gouraud\", edgecolors='red', linewidth=2)\nplt.show()\n```\n\n\u003cimg width=\"397\" height=\"303\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/ecd81ad1-95a5-4429-8de9-c34575b45612\" />\n\n\n### Proposed solution\n\nIt would be nice to additionally have a simple bilinear interpolation.","author":{"url":"https://github.com/timhoffm","@type":"Person","name":"timhoffm"},"datePublished":"2026-10-22T12:00:39Z","url":"https://github.com/matplotlib/matplotlib/issues/32518"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:627ae68b-513a-8bb6-ff95-c637d4585142 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C122:FBBFE:103E7DB:158741A:6B064EE6 |
| html-safe-nonce | 93323c7c0960085607797128effc48165db7a1dc63e715dc6d9802d393f16fc6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTIyOkZCQkZFOjEwM0U3REI6MTU4NzQxQTo2QjA2NEVFNiIsInZpc2l0b3JfaWQiOiI1NjY1MzM4MjI0ODkwMjM2NjQ2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6c27f69c660e85908acaa4d28eaff351a2d17781f4cb02e2fcf53b1f4806ce6a |
| hovercard-subject-tag | issue:5978874512 |
| 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/32518/issue_layout |
| twitter:image | https://opengraph.githubassets.com/137b39fb623a6a3f70f1be3390ec7e627366a88db40a3fe142cb945830fae91b/matplotlib/matplotlib/issues/32518 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/137b39fb623a6a3f70f1be3390ec7e627366a88db40a3fe142cb945830fae91b/matplotlib/matplotlib/issues/32518 |
| og:image:alt | Problem Currently the only "interpolating" shading of pcolormesh() is "gouraud". This is somewhat special: It splits the quadrilateral into two triangles and uses Gouraud shading for each. If the z... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | timhoffm |
| hostname | github.com |
| expected-hostname | github.com |
| None | 772b6997ca4daa0428dd49a25d76052e765555ae560fe9c88517eb828bbd861e |
| 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 | f1f9a08f7c769a37f1dfc18ad43d463c222a7eea |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width