Re: Unsupported X Windows visual [message #14289] |
Sun, 14 February 1999 00:00 |
Harald von der Osten-
Messages: 15 Registered: February 1999
|
Junior Member |
|
|
Dear Liam,
thank you once again. With
device, pseudo=8
I got the same effects. But now it was able to fix the problem: I switched
the X server to 32 Mio colors and now everything works fine.
Thank you very much for your help!!
Harald
|
|
|
Re: Unsupported X Windows visual [message #14296 is a reply to message #14289] |
Fri, 12 February 1999 00:00  |
Liam Gumley
Messages: 473 Registered: November 1994
|
Senior Member |
|
|
Harald von der Osten-Woldenburg wrote:
> I have upgraded my OS to Linux 2.0.36 with window manager KDE. As soon
> as graphical routines are called within IDL I get the error message
>
> % Unsupported X Windows visual (class: StaticGray, depth:0)
> % Substituting default (class: <UndefinedVisual>, Depth:0)
>
> How can I handle this in IDL settings?
I don't use any X resource settings, just the following startup file:
;---cut here---
;- Set up 8 bit display and allocate colors
device, retain=2, decomposed=0, pseudo=8
window, /free, /pixmap, colors = -5
wdelete, !d.window
;- Set graphics and widget font sizes
device, set_character_size=[6,9]
widget_control, default_font='7x13'
;- Ensure IDL 5 XMANAGER behavior is consistent with IDL 4
xmanager, catch=0
;---cut here---
This gives me consistent results on all Unix platforms. Set the
environment variable IDL_STARTUP to the full path and name of the
startup file. Note that if True Color mode is desired, replace
'pseudo=8' with 'true=24' in the the DEVICE keywords.
Cheers,
Liam.
---
Liam E. Gumley
Space Science and Engineering Center, UW-Madison
1225 W. Dayton St., Madison WI 53706, USA
Phone (608) 265-5358, Fax (608) 262-5974
http://cimss.ssec.wisc.edu/~gumley
|
|
|