File Exchange

image thumbnail

newcolorbar: multiple colormaps in the same axes

version 1.0.0.0 (431 KB) by Chad Greene
Create multiple colormaps and colorbars in (seemingly) the same set of axes.

2 Downloads

Updated 16 Aug 2015

View License

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 (2021). 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 .

Comments and Ratings (3)

David Gwyther

Jakub Bialek

Ah no 2014b is enough. Still, does not work for map axes...

Error using gcm (line 25)
Not a map axes.

Error in nextmap (line 24)
gcm; % Will error if gca is not a valid map axes

Error in pcolorm (line 46)
nextmap;

Jakub Bialek

Does it only work in a Matlab R2015a and higher?
It does not work for map axis...

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

newcolorbar/

newcolorbar/html/