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

Home » Public Forums » archive » the dreaded issue: colors
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
the dreaded issue: colors [message #15695] Fri, 04 June 1999 00:00 Go to next message
D. Mattes is currently offline  D. Mattes
Messages: 14
Registered: May 1999
Junior Member
IDL gurus (and there are many of you!):

it appears that when IDL first starts, !D.N_COLORS and !D.TABLE_SIZE are
both 256 for my 8-bit display, and don't actually report the number of
colors in the shared color table, until a window or device has been
opened. how can i get around this "feature"? i suppose i could open and
close a window before querying these system variables...

also: static color tables are a drag on the mac!!! why won't the
following work on a mac?

loadct,3,ncolors=100,bottom=0
loadct,1,ncolors=100,bottom=100

and how can i implement such a beast on the mac?

by the way, that was a very helpful discussion on IDL variables...much
appreciated!

thanks again,
david mattes
Re: the dreaded issue: colors [message #15734 is a reply to message #15695] Thu, 10 June 1999 00:00 Go to previous message
David Foster is currently offline  David Foster
Messages: 341
Registered: January 1996
Senior Member
D. Mattes wrote:
>
> IDL gurus (and there are many of you!):
>
> it appears that when IDL first starts, !D.N_COLORS and !D.TABLE_SIZE are
> both 256 for my 8-bit display, and don't actually report the number of
> colors in the shared color table, until a window or device has been
> opened. how can i get around this "feature"? i suppose i could open and
> close a window before querying these system variables...
>

David -

You could put something like the following in your "idl_startup" file:

window, xsize=5, ysize=5, /pixmap, /free
wdelete

and this will do the trick. I often use this when I need to define
default fonts and the like in the startup file, and don't want
that nagging "IDL 0" window to come up.

Dave Foster
--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2240
La Jolla, CA 92037
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: widget_programming
Next Topic: Re: arbitrary rotation of 3-d arrays

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

Current Time: Wed Oct 08 11:36:51 PDT 2025

Total time taken to generate the page: 0.00490 seconds