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

Home » Public Forums » archive » Basic colors for plot
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
Basic colors for plot [message #15539] Fri, 21 May 1999 00:00
nilsj is currently offline  nilsj
Messages: 6
Registered: May 1999
Junior Member
I have been having a heck of a time trying to get basic colors to work
with plot. For example, aftering entering the program fresh I type

plot, [0,1,2,3,4,5], [0,2,4,6,8,10]
loadct, 0
tek_color
plot, [0,1,2,3,4,5], [0,2,4,6,8,10], color=1

and my original plot disappears. The reason is that instead of the
tek_color color table, a linear red color table has been loaded. It has
color 0 = (0,0,0) and color 255 = (255,0,0) with a linear ramp in between.

It is not until I execute something like the IDL demo that tek_color
works as expected. That is, color 1 = white, color 2 = red, etc.

I'm sure it's something basic that I'm missing. But what?

Thanks,

Nils
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: When you can't concatenate structures like you expect....
Next Topic: 3D Puzzle

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

Current Time: Fri Oct 10 06:45:00 PDT 2025

Total time taken to generate the page: 0.72245 seconds