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

Home » Public Forums » archive » problem with color table, everything is red
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
problem with color table, everything is red [message #82051] Mon, 19 November 2012 02:13
simona bellavista is currently offline  simona bellavista
Messages: 56
Registered: December 2009
Member
I am having a hard time understanding colors in IDL. I am working on
x11 (linux).
I would be glad if someone can give me some tips about colors and
color tables.

when I try to load rainbow color table and display it with

loadct, 13
tv, dist(300)

I always get a color panel that is in grey scale, I have tried to load
several color tables, but the resulting color panel I get is always in
shade of greys.

Moreover, if I try to plot different part of my graphics with
different colors, using something like this:

for i=0,n-1 do begin
indx = start[i] + indgen(start[i+1]-start[i])
color = floor(i *255 / float(nlines))
oplot,x[indx],y[indx],color=color
endfor

I get my plot in shades of reds. I tried cgplot and it is the same.

then in a subsequent plot I try to revert to black and white, and I
use

plot, xx, yy,color=255, psym=2, symsize=2,

but everything turn red.

where shall I start?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Rare View of Aurora Australis
Next Topic: Re: problem with color table, everything is red

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

Current Time: Wed Oct 08 13:33:05 PDT 2025

Total time taken to generate the page: 0.00479 seconds