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

Home » Public Forums » archive » Re: HELP - Changing color map in Mac IDl
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: HELP - Changing color map in Mac IDl [message #20181 is a reply to message #20179] Tue, 23 May 2000 00:00 Go to previous messageGo to previous message
Liam E. Gumley is currently offline  Liam E. Gumley
Messages: 378
Registered: January 2000
Senior Member
Mark Elliott wrote:
> I am running IDL 5.3 on a G4 Mac. I'm using 8-bit pseudo-color.
> When I change the LUT (like with loadct) the images in the graphics
> windows do not change their appearance unless I redraw them. This
> makes routines like xloadct practically useless for optimizing the
> color map levels.

Assuming you are actually running in 8-bit mode (is your desktop set to
256 colors?), then you are seeing a 'feature' of the IDL direct graphics
system. There is no IDL preference which affects this behavior.

However consider the following wrappers for TVSCL and XLOADCT in IDL
5.3:

PRO TVSCL24, IMAGE, DATA=DATA
if (n_elements(image) gt 0) then begin
tvscl, image
return
endif
if (n_elements(data) gt 0) then begin
tvscl, data
return
endif
message, �No image argument was specified�
END

PRO XLOADCT24, IMAGE
xloadct, updatecallback=�tvscl24�, updatecbdata=image
END

These wrappers will update the image whenever the color table is
changed, e.g.

image = dist(256)
tvscl24, image
xloadct24, image

Cheers,
Liam.
http://cimss.ssec.wisc.edu/~gumley
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: SPAWNing IDL from IDL under UNIX
Next Topic: More Keyboard events

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

Current Time: Fri Dec 05 09:45:13 PST 2025

Total time taken to generate the page: 0.01356 seconds