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

Home » Public Forums » archive » about color table
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
about color table [message #66904] Thu, 18 June 2009 14:40 Go to previous message
Hu is currently offline  Hu
Messages: 35
Registered: January 2009
Member
Hi, folks

I want to do something like this: I got an 2-D array with values range
from 0.0 to 1.0. and I want to display the array using different
colors. for example, if the value is greater than 0.8, the elements
will be displayed as red, if the values is between 0.5 and 0.8, the
color will be blue, and the relationship can be listed as follows:

> 0.8 red
0.5-0.8 blue
0.3-0.5 yellow
0.2-0.3 green
<0.2 white

I know I need to set up a color table, and the book 'IDL Programming
techniques' demostrate how to set up a color table, and I set up the
table including those above colors.

The question is , How can I set up the relationship between the color
table and the different ranges? I mean how to 'tell' the computer
display the array using this relationship?

Thanks
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: about color table
Next Topic: matrix - element extraction

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

Current Time: Fri Oct 10 12:57:14 PDT 2025

Total time taken to generate the page: 0.48359 seconds