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

Home » Public Forums » archive » PLOTs with colour regions
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
PLOTs with colour regions [message #14710] Mon, 22 March 1999 00:00
philaldis is currently offline  philaldis
Messages: 32
Registered: March 1999
Member
I was wondering if people have had to do this in the past, and so have
written something to do it.

I'm wanting to plot some data, and at a certain threshold value, the
line colour must turn from being say white to red. That is to say I
don't just want to plot the data points above the threshold in red and
those below in white, I also want the connecting lines to be a
different colour as well.

The only way I could do it is as follows:
PLOT, data, /NODATA, POSITION=[0.2,0.2,0.8,0.8], yrange=[-4,4],
ystyle=1

PLOT, data, /NOERASE, yrange=[0,4], ystyle=5,
POSITION=[0.2,0.5,0.8,0.8], COLOR=130, xstyle=4

PLOT, data, /NOERASE, yrange=[-4,0], ystyle=5,
POSITION=[0.2,0.2,0.8,0.5], COLOR=255, xstyle=4


.......or something roughly like that - I'm trying desperately to
remember the commands.

Anyway that's a bit messy really to hev in a general format and I was
wondering if anyone's got a better way or has done it before?

Cheers,
Phil
[Message index]
 
Read Message
Previous Topic: Re: PLOTs with colour regions
Next Topic: Passing a structured variable as an argument of procedure

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

Current Time: Fri Oct 10 15:25:57 PDT 2025

Total time taken to generate the page: 1.59898 seconds