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

Home » Public Forums » archive » Re: problem with color table, everything is red
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: problem with color table, everything is red [message #82050] Mon, 19 November 2012 02:24 Go to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
On Monday, November 19, 2012 11:13:37 AM UTC+1, simona bellavista wrote:
> 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?

Hi,
this is generally a good place to start from: http://www.idlcoyote.com
But specifically you are looking for this:
http://www.idlcoyote.com/misc/tg_working_with_color.pdf

On page 34 there are some extra Linux tips.

Then you should learn about the
Device, Decompose=1
command.

You will soon enough find out that not everything in IDL is grayscale and red :-)

Cheers,
Helder
[Message index]
 
Read Message
Read Message
Previous Topic: problem with color table, everything is red
Next Topic: Re: Rare View of Aurora Australis

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

Current Time: Sat Oct 11 13:50:52 PDT 2025

Total time taken to generate the page: 1.04065 seconds