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

Home » Public Forums » archive » Re: How to add modified color tables to IDL 7.1
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 add modified color tables to IDL 7.1 [message #79613 is a reply to message #79612] Tue, 20 March 2012 02:14 Go to previous messageGo to previous message
Fabzi is currently offline  Fabzi
Messages: 305
Registered: July 2010
Senior Member
On 03/19/2012 09:27 PM, David L�pez wrote:
> On Mar 16, 1:29 pm, Fabien<fabien.mauss...@gmail.com> wrote:
>> On 03/16/2012 05:25 PM, David L�pez wrote:
>>
>>
>>
>>> Hi Andrew
>>> Thanks a lot... but make a mistake!!!!!
>>> but my result was copied rainbow palette number 13 to number 41 but
>>> both remain in grayscale.
>>> my command was!!!
>>
>>> IDL> TVLCT, r, g, b, /Get
>>> IDL> ModifyCT, 13, 'Rainbow', r, g, b
>>
>> Well at this point it happened what people told you to be careful
>> about... You overwrote the IDL rainbow colortable with the IDL grayscale
>> colortable.
>
> Hello Again...
> I can create new file rainbow in the palette
> but I can not save changes change when I modified with xpalette...
> my commands was!!
>
>
> IDL> TVLCT, r, g, b, /Get
> IDL> ModifyCT, 41, 'Rainbow'
> IDL> XPALETTE for modify colors.....
>
> Regards
>

Hi,

IDL> loadct, 13 ; The colors are loaded internaly
IDL> XPALETTE ; Modify colors as you want them
IDL> TVLCT, r, g, b, /Get ; Get the modified colors as r g b triple
IDL> MODIFYCT, 51, "MyRainbow", r, g, b ; Save them in IDL
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Convert from raster to PNG
Next Topic: New color palette

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

Current Time: Fri Oct 10 20:49:34 PDT 2025

Total time taken to generate the page: 0.39961 seconds