Title: Bivariate and multivariate colorbar · Issue #30527 · matplotlib/matplotlib · GitHub
Open Graph Title: Bivariate and multivariate colorbar · Issue #30527 · matplotlib/matplotlib
X Title: Bivariate and multivariate colorbar · Issue #30527 · matplotlib/matplotlib
Description: Project https://github.com/orgs/matplotlib/projects/9, which resolves github.com//issues/14168 is divided into a number of milestones, of which this is one (highlighted in bold). Classes for bivariate and multivariate colormaps Colorizer...
Open Graph Description: Project https://github.com/orgs/matplotlib/projects/9, which resolves github.com//issues/14168 is divided into a number of milestones, of which this is one (highlighted in bold). Classes for bivari...
X Description: Project https://github.com/orgs/matplotlib/projects/9, which resolves github.com//issues/14168 is divided into a number of milestones, of which this is one (highlighted in bold). Classes for bivari...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/30527
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bivariate and multivariate colorbar","articleBody":"Project https://github.com/orgs/matplotlib/projects/9, which resolves github.com/matplotlib/matplotlib/issues/14168 is divided into a number of milestones, of which this is one (highlighted in bold).\n\n* Classes for bivariate and multivariate colormaps\n* `Colorizer` and `ColorizingArtist` to replace `ScalarMappable` and handle the norm→color pipeline\n* A `MultiNorm` class to handle the normalization of data for bivariate and multivariate colormaps\n* Ensure the `Colorizer` and `ColorizingArtist` work with `MultiNorm`, `BivarColormap` and `MultivarColormap`\n* Expose the new functionality via the top-level plotting functions: `imshow()`, `pcolor()` and `pcolormesh()`\n* **Create equivalents to `fig.colorbar()` for `BivarColormap` and `MultivarColormap` to work with `ColorizingArtist`**\n* Select bivariate and multivariate colormaps to include in matplotlib\n* Examples demonstrating the new functionality\n\n---\n\nThe following prototype uses a hypothetical function `fig.colorbar_2D(ColorizingArtist)` to display a `BivarColormap`:\n```py\nx = np.linspace(-1.5, 0.5, 200)\ny = np.linspace(-1, 1, 200)\nxx, yy = np.meshgrid(x, y)\nc = xx+1j*yy\nz = c\nfor i in range(7):\n z = z**2+c\n\nfig, ax = plt.subplots(1, 1, figsize=(10, 6))\n\ncm = ax.pcolormesh(xx, yy, (z.imag, z.real), cmap='BiCone', vmin=-1, vmax=1)\nax.set_xlabel('Re{$c$}')\nax.set_ylabel('Im{$c$}')\nax.set_title('Mandelbrot $z_{7}$\\n $z_i = z_{i-1}^2+c$')\n\ncmap = fig.colorbar_2D(cm)\ncmap.set_ylabel('Im{$z$}')\ncmap.set_xlabel('Re{$z$}')\n\nfig.show()\n```\n\n\u003cimg width=\"1000\" height=\"600\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/d2fdf962-6647-4be1-9c3f-9752333c225f\" /\u003e\n\nWhile the name `colorbar_2D` is provisional, this functionality will be required as part of https://github.com/orgs/matplotlib/projects/9. \n\nMain questions include:\n* Function name\n* Should the function return an a new subclass of Axes? (subclass colorbar?) What members do the new class need?\n* Placement\n\nSimilar questions arise for the `MultivarColormap` class, i.e. in making the following plot:\n\n\u003cimg width=\"800\" height=\"800\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/0fcddaec-37f2-4691-8e3a-abc9b3368dcb\" /\u003e\n\n---\n\nNo work is expected on this issue until the milestones above it in https://github.com/orgs/matplotlib/projects/9 have been reached. ","author":{"url":"https://github.com/trygvrad","@type":"Person","name":"trygvrad"},"datePublished":"2025-09-08T12:38:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/30527/matplotlib/issues/30527"}
| 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:035624e7-e068-4b88-8873-ce3ab133a73e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C47E:2F3BA7:1020F29:1568A91:6A51C553 |
| html-safe-nonce | 1eefc80a385cc501cb5a8e6ab68fd09e2a3bc88e49539eb4bc8f0fa631f5272c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDdFOjJGM0JBNzoxMDIwRjI5OjE1NjhBOTE6NkE1MUM1NTMiLCJ2aXNpdG9yX2lkIjoiNTI1OTY0MjIxMTE2ODAxMTYwMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8fc6e3b51c6f4ffd728ca7ecac0ec21922399ae2007aace9251c42ff90527160 |
| hovercard-subject-tag | issue:3394034028 |
| 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/30527/issue_layout |
| twitter:image | https://opengraph.githubassets.com/78345403c65caae23013bb4b14f89e2d1280f6cc931fe4c527f2492adb675176/matplotlib/matplotlib/issues/30527 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/78345403c65caae23013bb4b14f89e2d1280f6cc931fe4c527f2492adb675176/matplotlib/matplotlib/issues/30527 |
| og:image:alt | Project https://github.com/orgs/matplotlib/projects/9, which resolves github.com//issues/14168 is divided into a number of milestones, of which this is one (highlighted in bold). Classes for bivari... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | trygvrad |
| 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 | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width