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

Home » Public Forums » archive » Re: loading colors in tvscl
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: loading colors in tvscl [message #54555 is a reply to message #54552] Tue, 26 June 2007 13:16 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
kostis writes:

> I tried the following but still no color....
> If i wasnt permitted to do that i should see a message right?
>
> LoadCT, 5, NColors=100, Bottom=100
> for i=1,100 do begin
> image=congrid(bytscl(ARRAY[*,*,i]),500,500)
> TVSCALE,ROTATE(image,1), NColors=100, Bottom=100
> endfor
>
> LoadCT, 33
> for i=1,100 do begin
> image=congrid(bytscl(ARRAY[*,*,i]),500,500)
> TVIMAGE,ROTATE(image,1)
> endfor

Well, then. You have bigger problems than I thought. :-)

My guess is that you are on a LINUX computer that is
using a DirectColor visual. You can see if this is so,
by typing this:

IDL> Device, Get_Visual_Name=theVisual & Print, theVisual

If you see DirectColor printed out, read this article
IMMEDIATELY:

http://www.dfanning.com/misc_tips/idlsetup.html

As long as you are in DirectColor, *nothing* will make sense to
you. :-)

If this is not the case, send us the result of this command:

IDL> Help, /Device

And we will see what to do next.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: error using statement: If.....then
Next Topic: Re: error using statement: If.....then

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

Current Time: Thu Oct 16 20:48:12 PDT 2025

Total time taken to generate the page: 1.84473 seconds