newcolorbar: multiple colormaps in the same axes

Create multiple colormaps and colorbars in (seemingly) the same set of axes.

You are now following this Submission

This function creates a new set of invisible axes matching the size and extents of the current axes. This allows additional colormaps to be used in such a way that they are perceived as multiple colormaps in the same axes.

Cite As

Chad Greene (2026). newcolorbar: multiple colormaps in the same axes (https://www.mathworks.com/matlabcentral/fileexchange/52505-newcolorbar-multiple-colormaps-in-the-same-axes), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

Typo fix in the description.