heatmap color scales
Aug. 28th, 2009 09:28 pmI'm programming something that makes color plots.
If I interpolate linearly between blue and red, I end up with different shades of blue, red and purple.
But most heatmaps also have greens, yellows and oranges, which I think do more good than harm.
Is there a standard path through the RGB color cube?
If I interpolate linearly between blue and red, I end up with different shades of blue, red and purple.
But most heatmaps also have greens, yellows and oranges, which I think do more good than harm.
Is there a standard path through the RGB color cube?
(no subject)
Date: 2009-08-29 04:40 am (UTC)(no subject)
Date: 2009-08-30 10:12 pm (UTC)I would love to see actual curves showing how much each frequency activates each cone-type (in a typical human).
I suspect that they are roughly Gaussian-shaped and overlapping (otherwise the rainbow would have some colorless spots between red and blue).
I suspect the RGB spec is based on our cones, in such a way that the RGB colors are produced by mixtures of the 3 frequencies.
(no subject)
Date: 2009-08-31 08:34 pm (UTC)(no subject)
Date: 2009-08-29 06:40 am (UTC)If you can quantify the ranges down to around ~10 bucket, then I highly recommend looking at the color schemes listed on ColorBrewer. It's what I used in my big (sadly offline) GIS startup project, and they're simply gorgeous.
(no subject)
Date: 2009-08-29 06:55 am (UTC)http://www.scipy.org/Cookbook/Matplotlib/Show_colormaps
:)
Terry
(no subject)
Date: 2009-08-30 02:23 pm (UTC)That's an R package that'll generate the colors you want. Also links to a paper on the theory.
(no subject)
Date: 2009-08-30 06:00 pm (UTC)