gusl: (Default)
[personal profile] gusl
I'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?

(no subject)

Date: 2009-08-29 04:40 am (UTC)

(no subject)

Date: 2009-08-29 06:40 am (UTC)
From: [identity profile] gfish.livejournal.com
I recommend against using RGB, as it really doesn't represent how the human eye sees colors. For a quick and easy fix, try using HSV. If you vary the hue value, you'll get something a lot more linearly interpretable.

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)
From: (Anonymous)
There's a bunch of standard paths... here's some:

http://www.scipy.org/Cookbook/Matplotlib/Show_colormaps

:)
Terry

(no subject)

Date: 2009-08-30 02:23 pm (UTC)
From: (Anonymous)
Try http://cran.r-project.org/web/packages/colorspace/index.html

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)
From: [identity profile] gustavolacerda.livejournal.com
Thanks. Who is this?

(no subject)

Date: 2009-08-30 10:12 pm (UTC)
From: [identity profile] gustavolacerda.livejournal.com
Thanks.

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)
From: [identity profile] http://users.livejournal.com/_tove/
If I understand correctly what you're asking for, Wikipedia's got you covered there, too.

February 2020

S M T W T F S
      1
2345678
9101112131415
16171819202122
23242526272829

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags