GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Bivariate and multivariate colorbar · Issue #30527 · matplotlib/matplotlib

Bivariate and multivariate colorbar #30527

New issue
Copy link
New issue
Copy link
Open
Open
Bivariate and multivariate colorbar#30527
Copy link

Description

@trygvrad
trygvrad
opened on Sep 8, 2025
Issue body actions

Project Bivariate and Multivariate Colormapping, 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 and ColorizingArtist to replace ScalarMappable and handle the norm→color pipeline
  • A MultiNorm class to handle the normalization of data for bivariate and multivariate colormaps
  • Ensure the Colorizer and ColorizingArtist work with MultiNorm, BivarColormap and MultivarColormap
  • Expose the new functionality via the top-level plotting functions: imshow(), pcolor() and pcolormesh()
  • Create equivalents to fig.colorbar() for BivarColormap and MultivarColormap to work with ColorizingArtist
  • Select bivariate and multivariate colormaps to include in matplotlib
  • Examples demonstrating the new functionality

The following prototype uses a hypothetical function fig.colorbar_2D(ColorizingArtist) to display a BivarColormap:

x = np.linspace(-1.5, 0.5, 200)
y = np.linspace(-1, 1, 200)
xx, yy = np.meshgrid(x, y)
c = xx+1j*yy
z = c
for i in range(7):
    z = z**2+c

fig, ax = plt.subplots(1, 1, figsize=(10, 6))

cm = ax.pcolormesh(xx, yy, (z.imag, z.real), cmap='BiCone', vmin=-1, vmax=1)
ax.set_xlabel('Re{$c$}')
ax.set_ylabel('Im{$c$}')
ax.set_title('Mandelbrot $z_{7}$\n $z_i = z_{i-1}^2+c$')

cmap = fig.colorbar_2D(cm)
cmap.set_ylabel('Im{$z$}')
cmap.set_xlabel('Re{$z$}')

fig.show()
Image

While the name colorbar_2D is provisional, this functionality will be required as part of Bivariate and Multivariate Colormapping.

Main questions include:

  • Function name
  • Should the function return an a new subclass of Axes? (subclass colorbar?) What members do the new class need?
  • Placement

Similar questions arise for the MultivarColormap class, i.e. in making the following plot:

Image

No work is expected on this issue until the milestones above it in Bivariate and Multivariate Colormapping have been reached.

Activity

  1. trygvrad
    added this to Bivariate and Multivariate Colormappingon Jul 3, 2025
  2. trygvrad
    converted this from a draft issue on Sep 8, 2025
  3. trygvrad
    moved this from Todo to In Progress in Bivariate and Multivariate Colormappingon Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Bivariate and Multivariate Colormapping
      Status
      In Progress
      Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402520 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.