File Exchange

image thumbnail

Rainbow Colormap

version 1.0.0.0 (55.8 KB) by Dr. Murtaza Khan
Rainbow Colormap

9 Downloads

Updated 15 Jun 2015

View License

Compute transfer function of Rainbow Colormap and display image using Rainbow Colormap

Comments and Ratings (3)

This submission merely replicates inbuilt functionality: the stated purpose of this submission is to

1) generate a rainbow colormap, and
2) plot the rainbow colormap's "transfer function".

The inbuilt JET function already offers a rainbow colormap, and colormap viewing is available using the function RGBPLOT, so in fact the main part of this submission can be replaced with the following twelve characters:

rgbplot(jet)

Just 12 characters that call inbuilt functions, instead of downloading three third-party functions from the internet... and RGBPLOT works with *all* colormaps too!

Then comes the question of why we need another rainbow colormap anyway, given the amount of discussion and research showing that rainbow colormaps are terrible at data representation. MATLAB has changed its default colormap to PARULA for exactly this reason:

http://blogs.mathworks.com/steve/2014/10/13/a-new-colormap-for-matlab-part-1-introduction/

http://blogs.mathworks.com/steve/2014/10/20/a-new-colormap-for-matlab-part-2-troubles-with-rainbows/

And there are plenty of submissions on FEX that offer better colormaps than rainbow ones:

http://de.mathworks.com/matlabcentral/fileexchange/48426-paruly

http://de.mathworks.com/matlabcentral/fileexchange/43700-cubehelix-colormaps--beautiful--distinct--versatile-

http://de.mathworks.com/matlabcentral/fileexchange/45208-colorbrewer--attractive-and-distinctive-colormaps

Updates

1.0.0.0

figure added

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

Inspired: squink(Colors,Gamma), jetwhite(Colours)