Re: Color tables in idl5.5 [message #28287] |
Fri, 30 November 2001 05:26 |
Alan Barnett
Messages: 5 Registered: November 2001
|
Junior Member |
|
|
Thank you for your help.
I tried the fix suggested by David Fanning:
window,/pixmap&wdelete
device,bypass_translation=0
This permitted me to plot greyscale images correctly, but I still cannot
load color tables to display a pseudo-color image.
On closer inspection, I see that the problem with my color tables is that
there is no blue. I tried using 24 bit true color, and I discovered that
I cannot display the blue channel. This seems to be the source of the problem.
Does anyone else have this problem?
--
Alan Barnett
2500 Jennings Rd
Silver Spring, MD 20902
301 949 2297
|
|
|
Re: Color tables in idl5.5 [message #28289 is a reply to message #28287] |
Fri, 30 November 2001 02:01  |
Nigel Wade
Messages: 286 Registered: March 1998
|
Senior Member |
|
|
Alan Barnett wrote:
>
> I run idl on a LINUX box that supports 24 bit color. The image should
> consist of vertical bands of color, greys from black to white on the
> left, blue, green, yellow and red on the right with several narrow
> bands of various colors and a broad band of black in between. The
> colors are correct when run under idl 5.3, although I do get the error
> message
>
> % Unsupported X Windows visual (class: PseudoColor, depth: 8).
> Substituting default (class: TrueColor, Depth: 24).
>
The reason you get this error is that your graphics card, in common with
the vast majority, is only capable of providing a single visual class at
any one time. With your current visual set to 24 bits, the card is
incapable of providing you with the requested 8 bit visual.
If you are getting the correct colours with the 24 bit visual, can't you
just remove the request for the 8 bit visual to get rid of the error
message?
--
-----------------------------------------------------------
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523568, Fax : +44 (0)116 2523555
|
|
|
|