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

Home » Public Forums » archive » Re: colormap issues
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: colormap issues [message #60658 is a reply to message #60521] Wed, 28 May 2008 11:07 Go to previous message
neon is currently offline  neon
Messages: 9
Registered: October 2005
Junior Member
On May 27, 8:03 am, David Fanning <n...@dfanning.com> wrote:
> neon writes:
>> I am writing a Data Reduction GUI software in IDL. I wanted to be able
>> to call another useful package thats already there (ATV.pro) from the
>> GUI for quick analysis. So I did that. But a problem I ran into is ATV
>> modifies the color table. This messes up all my colors in the GUI that
>> I wrote. I tried using tvlct, rr,gg,bb,\get and loading it back. This
>> didnt work either. In my GUI I dont load colortables or do anything to
>> them. Instead I just use the color keyword for each colors. If anyone
>> could help me out I would be internally grateful:)
>
> If you mean that you specify colors as 24-bit values, then
> you simply need to set DEVICE, DECOMPOSED=1 before you
> use your colors. ATV is almost certainly written so that
> it sets DEVICE, DECOMPOSED=0 for its colors.
>
> If you mean you specify colors as 8-bit values (like ATV
> does), then you have no choice but to load your colors
> before you use the colors. There is only one color table,
> and ATV changed it.
>
> The only other alternative (which I am having a hard time
> getting across to people) is to use color tools that
> work around this problem. FSC_COLOR is one such tool.
> If you used that to specify your colors there is a very
> good chance you wouldn't be writing this morning. :-)
>
> 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.")

Hey Thanks so much. I do specify my colors as 24-bit values. And you
were right. That was the problem. It worked after I set the device. I
remember doing this earlier. I feel stupid. Thanks so much again.
--
Nirbhik

PS. btw ur book is great! I used it when I started on IDL.
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Distance between contour lines
Next Topic: Re: Reading Others Code

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

Current Time: Sun Nov 30 19:24:11 PST 2025

Total time taken to generate the page: 2.72025 seconds