Re: Newbie Question on Colors [message #11168] |
Thu, 26 February 1998 00:00 |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Jeff (jeffe@fl.ensco.com) writes:
> Is there any procedure or functions which given a concentration value,
> return the index from the color table that the
> IDL '/FILL or /CELL_FILL' option is using for its shaded contours display?
Don't you be letting IDL push you around and chose colors
for you. Be assertive and choose the colors yourself. Then
you will never have to guess what the colors mean. In this
case, you want to set up a color table for your concentrations
and use the C_COLORS keyword on your CONTOUR command to force
the filled colors to be the ones in this color table.
If you need some help building color tables, have a look
at the programs GETCOLOR, CHGCOLOR, or XCOLORS from my web page.
Getting control over colors is one of the most important
things you can learn in IDL programming, in my humble
opinion. Writing "color aware" applications is one of the
hallmarks of good IDL programming, but it is not something
that IDL makes especially easy for you. It becomes even
more important as we migrate into more machines with 24-bit
graphics displays.
Cheers,
David
-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|