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 #12930 is a reply to message #12836] Thu, 24 September 1998 00:00 Go to previous messageGo to previous message
T Bowers is currently offline  T Bowers
Messages: 56
Registered: May 1998
Member
hmmmm... doesn't work.
plot,x,a, color=1 ;gives me a red line
oplot,x,b, color=2 ;= black line
oplot,x,b, color=3 ; = black line

strange, i seem to ONLY get red or black colors if i try
to specify a color. i tried tek_color 1st and the docs say:

The TEK_COLOR procedure loads a 32-color colortable similar to the default
Tektronix 4115 colortable. This colortable is useful because of its distinct
colors.
By default, this palette consists of 32 colors. The first 9 colors are:
Index 0=black, 1=white, 2=red, 3=green, 4=blue, 5=cyan, 6=magenta, 8=orange.

if I :
TEK_COLOR
plot,x,a, color=0
oplot, x,b,color=1
oplot, x,c,color=2
oplot, x,d,color=3
oplot, x,e,color=4
oplot, x,f

IDL plots a black, b red, c red, d black, and e black., f, with no color
designation, is white.

certainly not the black, white, red, green, blue that tek_color is supposed
to plot. seems like I only get red or black, no matter what my color index
is.

this is *really* confusing me.

what's causing this??
if i go to the demo dir and run an idl sample with colors, it runs fine.
then
i run mine and again i get black, red, and white only. this is driving me
nuts!

thaks,
todd

Vap User wrote in message <88u324gdbw.fsf@haifung.jpl.nasa.gov>...
> "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: Sat Oct 11 13:42:06 PDT 2025

Total time taken to generate the page: 1.67902 seconds