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

Home » Public Forums » archive » Color in PLOT(S)??
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Color in PLOT(S)?? [message #44506] Wed, 22 June 2005 01:23 Go to next message
Matthias Demuzere is currently offline  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 Go to previous message
R.Bauer is currently offline  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
============================================================ =======
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: bug in 'axis'?
Next Topic: HDF to ENVI format

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

Current Time: Wed Oct 08 16:00:36 PDT 2025

Total time taken to generate the page: 0.00532 seconds