Colormap formulae

It is pseudo color and color pallet based on rgbformulae of gnuplot.


Updated 3 Apr 2018

View License

It provide a variety of colormaps. It can be used for many plot applications.
In addition, it can be used to convert from a gray image to a pseudo color image.
Run demo.m!

Usage of colormap:
colormap(ax1,colormapformulae('traditional ', 2560));
colormap(ax1,colormapformulae([7,5,15], 2560));

It includes builtin colormap like 'cool'.
colormap(ax1,colormapformulae('cool', 2560));

Usage of pseudo color conversion:
col = gray2pseudocolor(gry,'traditional');
col = gray2pseudocolor(gry,[7,5,15]);

The numbers [7,5,15] specifiy the transformation functions of R, G, and B.
You can get different colormap by changing the numbers.

Each function includes help.
Please type:
% help [function]

Cite As

Masayuki Tanaka (2023). Colormap formulae (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2017a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Colormaps in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes