Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Re: color control

On Tue, 13 Jan 2004, Jay Parsons wrote:

> Thanks, I got the color table and ColorControl to work
> in my app.
>
> I would like to control which values are then assigned
> to each color.
> For example, my min=0 and max=10
> and I have 6 colors in my table c[3][6]
>
> can I map
>
> color - c0     c1     c2     c3     c4     c5
> value -  0   .1-1   1.1-3   3.1-5  5.1-7   7.1+
>
>
> Can I use the setFunction method in ColorControl to
> for this?

Yes, but you can do it with setTable() too. You just
need to figure out the linear mapping between your
precipitation values and your table entries. Be prepared
to experiment a little.

Good luck,
Bill


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690