Re: iplot and color tables? [message #49187 is a reply to message #49095] |
Tue, 27 June 2006 08:19   |
maye
Messages: 29 Registered: June 2006
|
Junior Member |
|
|
David Fanning schrieb:
> 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
>
One also needs error_message.pro
Hi!
Thanks for your prompt reply! I'm glad that your fame leaves you time
to read and write in these forums so actively!
Some comments on your help:
After also downloading error_message.pro from your website, your
programs work nicely, and i can for example, put the pickcolorname
inside the fsc_color, so that i am asked everytime what color this plot
should be in, that's quite nice and comfortable!
But in the case of doing very often plots with 10 graphs it becomes
quickly tiring.
So, what I did, is to create a string array with ten names, created
with pickcolorname. And this array I use to control fsc_color in my
loop for the graph creation.
But maybe sometimes I don't want to create these names before, but just
a simple number access, so I guess i will change your code to give me
that. Or is an integer access already built in, and i haven't seen it?
Anyway, thanks for your help (and sorry that USA didn't move on into
the WorldCup's last round of 16. ;)
Michael
|
|
|