File Exchange

image thumbnail

Cold Colormap

version 1.1 (1.41 KB) by

Creates a COLD colormap that complements the built-in HOT colormap



View License

COLD Black-Blue-Cyan-White Color Map

COLD(M) returns an M-by-3 matrix containing a "cold" colormap
COLD, by itself, is the same length as the current figure's colormap. If no figure exists, MATLAB creates one.

colormap(cold); colorbar

load topo
imagesc(0:360,-90:90,topo), axis xy
colormap(cold); colorbar

Comments and Ratings (3)

Matt Amaro

Hi Joseph,
Great code. I also found that this code works;

cmap = colormap(1-hot);
cmap(1,:) = [1 1 1]; %Pure white

Matteo Niccoli

I like your submission. Simple, well written code. Your example inspired me to make a similar one for my Perceptually improved colormaps submission.

John D'Errico

John D'Errico (view profile)

You might add a see also for cool, an existing colormap with a slightly different shape in terms of colors.

Regardless, this adds another colormap option. As always, the help is what I'd expect.



Added "cool" to the "See also" section, as suggested.

MATLAB Release
MATLAB 7.6 (R2008a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video