Color in PLOT(S)?? [message #44506] |
Wed, 22 June 2005 01:23  |
Matthias Demuzere
Messages: 9 Registered: April 2004
|
Junior Member |
|
|
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
|
|
|
Re: Color in PLOT(S)?? [message #44632 is a reply to message #44506] |
Thu, 30 June 2005 01:05  |
R.Bauer
Messages: 1424 Registered: November 1998
|
Senior Member |
|
|
Matthias Demuzere wrote:
> 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
>
This is from one of the excercises of our idl course
pro two_color
ang=2*!PI*INDGEN(360,/FLOAT)/359.
x=COS(ang)
y=SIN(ang)
tek_color
plot,x,y,/nodata
oplot,x,y,color=2,min_value=0
oplot,x,y,color=4,max_value=0
end
cheers
Reimar
--
Reimar Bauer
Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
============================================================ =======
|
|
|