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

Home » Public Forums » archive » Re: Color in PLOT(S)??
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: Color in PLOT(S)?? [message #44503 is a reply to message #44501] Wed, 22 June 2005 05:28 Go to previous message
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
Here are the steps that I would use:

1. Define a color bar with blue colors in the indices 0-127, where 0 is dark
blue and 127 is white. Then you put the red colors in indices 127-255, where
127 is white and 255 is the dark red.

2. Then use bytscl to scale your range: xbyte=bytscl(x,min=-300,max=300)

3. Use TV to display the array.

Haje


"Matthias Demuzere" <Matthias.demuzere@geo.kuleuven.ac.be> wrote in message
news:1119428608.611549@seven.kulnet.kuleuven.ac.be...
> Hi all,
>
> I'm trying to make a 2D Bias plot with values fluctuating from -300 to 300
> (same line). Is it possible to plot the negative values in RED and the
> positive values in BLUE?
> Can anyone help me with that?
>
> Thanx!!
> Matthias
>
> --
> ************************************************************
> ************************************************************
> Physical and Regional Geography Research Group
> Redingenstraat 16
> B-3000 Leuven
> Belgium
>
> Tel: +32 16 326453
> Fax: +32 16 326400
> E-mail: Matthias.Demuzere@geo.kuleuven.be
> ************************************************************
> ************************************************************
>
> "You don't need a weatherman to know which way the wind is blowing..."
>
> Bob Dylan
>
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Swap even/odd elements in array
Next Topic: Re: extract numbers from string

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

Current Time: Sat Oct 11 20:18:43 PDT 2025

Total time taken to generate the page: 0.47836 seconds