comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Newbie Question on Colors
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Newbie Question on Colors [message #11168] Thu, 26 February 1998 00:00
davidf is currently offline  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/
[Message index]
 
Read Message
Previous Topic: Speed Survey Needs You!
Next Topic: Newbie Question on Colors

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 20:03:55 PDT 2025

Total time taken to generate the page: 0.40310 seconds