Diverging Brewer Color Tables Fixed [message #60345] |
Mon, 19 May 2008 07:24 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Folks,
There were a couple of problems with the Brewer color table
file I produced last week (which I had just copied from
Mike Galloy's implementation). In particular, the diverging
color tables didn't diverge exactly in the middle of the
scale. There was also some kind of problem on the high end
of the color table, such that if you reduced the color table
to, say, 16 colors then color 15 and 16 were indistinguishable.
I've fixed both of these problems in a new color table file:
http://www.dfanning.com/programs/fsc_brewer.tbl
In two-color diverging color tables, one color now goes
from 0 to 127, the second color goes from 128 to 255.
You can see this best if you load 16 colors:
IDL> CTLoad, 0
IDL> CTLoad, /Brewer, 19, NCOLORS=16
IDL> CIndex
I'm convinced the colors are now correct for all single
or two-color color tables. I'm not as convinced for three-color
color tables, but I continue to investigate as time permits.
If you have suggestions, I'm always happy to hear them.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|