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

Home » Public Forums » archive » Re: How to get the current color table number?
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: How to get the current color table number? [message #47329 is a reply to message #47328] Thu, 02 February 2006 14:48 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
b_efremova@yahoo.com writes:

> Is there something like a GET keyword to the LOADCT command? (I didn't
> find one, and I need to get the number of the current loaded ct in
> order to be able to return to it later.)

A search of the archives of this newsgroup will soon reveal
that there is nothing whatsoever like this, and that, in
fact, a number is about the least useful thing you can
have with respect to colors in a color table. :-)

If you want the colors to be right, load your color table
and save the *color vectors*:

Loadct,5
TVLCT, r, g, b, /Get

Then, later, to return to the colors:

TVLCT, r, g, b

If you *have* to know the number, save that, too. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: How to get the current color table number?
Next Topic: Re: Help communicating between IDL programs on two computers

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

Current Time: Sun Nov 30 09:36:49 PST 2025

Total time taken to generate the page: 0.71483 seconds