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

Home » Public Forums » archive » change colors on colortable
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: change colors on colortable [message #94409 is a reply to message #94407] Thu, 11 May 2017 03:06 Go to previous message
Nikola is currently offline  Nikola
Messages: 53
Registered: November 2009
Member
On Wednesday, May 10, 2017 at 11:58:52 PM UTC+1, John Sofiadis wrote:
> hi!i wonder if anyone could inform me how to change colors at a given colortable.thank you in advance!


A color table consists of three arrays, each with 256 elements with values in the range [0, 255]. Arrays correspond to the red, green and blue channel (axis of the color cube). To see the arrays that are currently active, execute

TVLCT, r, g, b, /get

To change manually the color scale, alter the arrays r, g, b as you want and then execute

TVLCT, r, g, b

If you want to select one of the IDL predefined color tables, you can do it using

LOADCT, number of the color table (0 = grayscale, 13 = rainbow, etc).
[Message index]
 
Read Message
Read Message
Previous Topic: defroi
Next Topic: Isotropic keyword in plot (function graphics)

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

Current Time: Wed Oct 08 11:40:37 PDT 2025

Total time taken to generate the page: 0.00414 seconds