problem with color table, everything is red [message #82051] |
Mon, 19 November 2012 02:13 |
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?
|
|
|