Re:Don't use Scatterplots
by gammarator on Saturday May 26, 2012 @11:30PM
(#4029107)
I believe the 'Spectral' colormap (with a capital S) in matplotlib does exactly that.
Based on the names, it seems [1, 2] (along with all the other capitalized matplotlib colormaps) to be a ColorBrewer [3] colormap, which are all designed with these perceptual considerations in mind [4].
[1] https://github.com/gka/chroma.js/wiki/Predefined-Colors
[2] http://matplotlib.sourceforge.net/examples/pylab_examples/sh...
[4] http://vis4.net/blog/posts/avoid-equidistant-hsv-colors/
But after reading that paper, I do agree that rainbow has some significant issues. One thing that might be worth trying: make a rainbow color map, but map values to colors in such a way that |x-y|=C x cielab_dist(color(x), color(y)).