File Exchange

image thumbnail

MakeColorMap

version 1.3.0.1 (1.94 KB) by

Makes colormaps that smoothly blend from one color to another to optionally a third.

69 Downloads

Updated

View License

Many colormaps like Jet cause your eye to misunderstand important characteristics of your data. It is often best to simply blend from one color to another, or possibly through three. This file will makes such colormaps.

Comments and Ratings (17)

Great code,however, I have a hard time making a categorical color key with alternative black and white. Something like the build-in "colormap(lines)" but with only black and white!
Is it possible?

Julius Lein

StefanoMas

Works perfectly

cheng joylin

cheng joylin

cmo

cmo (view profile)

Kevin Quinn

Works beautifully!

Dragon Yang: the error message is telling you that MATLAB cannot find this function on its path. Try downloading the M-file from this website and saving it to your working directory. Any search engine will provide step-by-step instructions too.

dragon yang

I used this function on matlab2012a and it throw error like "Undefined function 'makeColorMap' for input arguments of type 'double'.":
My called codes are belows:
" peaks;
a = makeColorMap([1 0 0],[1 1 1],[0 0 1]);
colormap(a)
colorbar"
Would you give some solution?
Thanks.

Pearl

Pearl (view profile)

Thank you for the code! It works well. I'm wondering how you made the color blocked in the image

Pia

Pia (view profile)

This is brilliant - just what I needed.

Bill

Bill (view profile)

very handy. i just have a simple question. How did you make the categorical color key in your figure? It seems hard to it by specifying middle colors. Thank you.

Bill

Bill (view profile)

very handy. i just have a simple question. How did you make the categorical color key in your figure? It seems hard to it by specifying middle colors. Thank you.

Matteo Niccoli

Really good submission Doug. And the videos are incredibly useful for someone like me who is just starting the transition from scripts to functions. Thank you.

Dalle Ali

really helps my university-project further. very useful :)

Arthur

Arthur (view profile)

very useful tool.

Very easy to use with good results.

Updates

1.3.0.1

Updated license

1.3

as required toolbox

1.2

Copyright

1.1

generating license

MATLAB Release
MATLAB 7.5 (R2007b)

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

» Watch video