Re: iplot and color tables? [message #49095 is a reply to message #49094] |
Mon, 26 June 2006 12:47   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
maye writes:
> I can't seem to find a way to use simple color tables in iPlot, like it
> is possible to do in iimage.
> Do I really have to know the RGB values of useful colors for iPlot's
> COLOR keyword, just to distinguish 10 graphs I overplot on each other,
> or do I overlook something?
> If giving the color in RGB values is really the only way to have nicely
> distinguishable graphs in iPlot, does anybody happen to have a list of
> let's say, 16 different RGB values for that?
> I see, that there is a way to construct your own color table.. but.. do
> I really have to? :)
> I'm a scientist, who does not necessarily want to know about RGB values
> of useful colors, but just wants to have different plots nicely
> distinguished by colors.
> In PLOT I just can multiply/add my FOR-variable to change the value for
> the color keyword, but in iPlot? Any suggestions?
FSC_COLOR has 110 (or so) "named" colors you can specify.
You can return the RGB triple for each color by specifying
the TRIPLE keyword. Unfortunately, the triple comes back
as a 1 by 3 array (so it can be loaded with TVLCT), so
you need to transpose it to use it with the object graphics
system:
iplot, COLOR=Transpose(FSC_COLOR('indian red', /Triple)), [0,1]
To see all the colors available, type this:
color = FSC_Color(/Select)
You will need these programs:
http://www.dfanning.com/programs/fsc_color.pro
http://www.dfanning.com/programs/pickcolorname.pro
The program can be easily modified to work directly
with IPLOT.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|