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

Home » Public Forums » archive » What's my colour table?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
What's my colour table? [message #56898] Thu, 22 November 2007 09:07
Spon is currently offline  Spon
Messages: 178
Registered: September 2007
Senior Member
Hi guys,

quick question: is there a system variable that stores the colour
table that I've currently got loaded? So that I can, for example,
store that number in a variable within a function, load a new colour
table, and then load back the old one before I return back to the
previous level? I can't find it in the helpfile if it's there.

e.g.

FUNCTION CTTEST, Data

OldCT = !D.CT ; or whatever it's called
CTLOAD, 0 ; load greyscale
; do something that requires greyscale
S = SIZE (Data, /DIM)
RoI = DEFROI (S[0], S[1])

; and grab back the old colour table
CTLOAD, OldCT
RETURN, RoI
END

Thanks,
Chris
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: 3D Scatterplot with iMap/iImage
Next Topic: Re: What's my colour table?

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

Current Time: Thu Oct 09 21:21:56 PDT 2025

Total time taken to generate the page: 0.96149 seconds