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

Home » Public Forums » archive » Re: self made color tables
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: self made color tables [message #40956 is a reply to message #40954] Tue, 21 September 2004 06:18 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
michele writes:

> i know modifyct but the problem is always there:
> you have to type in manually all the triplets. if i have to type in
> the triplets,
> i can do that: i write a text file with the triplets, read them and
> load em with tvlct and i also avoid the problem of updating or writing
> a new tlb file...
>
> i simply expect xpalette to have a button with SAVE and then i type in
> a color table number, say 41, and then i load it with loadct...
>
> the problem is that typing the triplets in is time consuming...
> or , another way to solve the problem,
> is there a way to get the triplets automatically from xpalette to be
> used in modifyct?

Typing them in manually!? Is that a typewriter you are using? :-)

Try this:

XPalette ; Get the color tables the way you want them.
TVCLT, r, g, b, /Get ; Get the color table vectors.
ModifyCT, 42, 'mycolors', r, g, b

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http:/www.dfanning.com/
Phone: 970-221-0438, IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Function compiles, but get message as if it's not
Next Topic: Re: Opening a new window

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

Current Time: Sat Oct 11 15:31:20 PDT 2025

Total time taken to generate the page: 1.12194 seconds