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

Home » Public Forums » archive » simple, yet eluding...different color lines in a plot
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: simple, yet eluding...different color lines in a plot [message #12973 is a reply to message #12836] Sat, 19 September 1998 00:00 Go to previous messageGo to previous message
Vap User is currently offline  Vap User
Messages: 31
Registered: April 1998
Member
"T Bowers" <tbowers@nrlssc.navy.mil> writes:

Assuming you are running with a 8 bit system and that you have at
least 5 color slots available.

Tvlct, [ 0, 255,0,0,255], [0, 0,255,0,255], [0, 0,0,255,255], 0
plot,x,a, color=1
oplot,x,b, color=2
oplot,x,c, color=3

See Dave Fannings Website for how to do it in 24 bits. (http://www.dfanning.com)
I don't mess with 24 bits myself.

whd

>
> how do i oplot so that different data get assigned different colors, eg.
>
> plot,x,a
> ;a should be red curve
> oplot,x,b
> ;b should be green curve
> oplot,x,c
> ;c should be blue curve
>
> thanks
>
>

--
I don't speak for JPL, it doesn't speak for me.
Well, not all the time, at least.
William Daffer <vapuser@haifung.jpl.nasa.gov>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Multithreaded external routines for IDL/WinNT
Next Topic: Contributed Source: CW_selectaxes (Corrected and working!)

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

Current Time: Mon Dec 01 02:39:06 PST 2025

Total time taken to generate the page: 0.24050 seconds