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

Home » Public Forums » archive » Re: Color tables in idl5.5
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
Re: Color tables in idl5.5 [message #28287] Fri, 30 November 2001 05:26
Alan Barnett is currently offline  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 Go to previous message
Nigel Wade is currently offline  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
Re: Color tables in idl5.5 [message #28290 is a reply to message #28289] Thu, 29 November 2001 20:40 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Alan Barnett (asb@localhost.localdomain) writes:

> I am unable to display pseudo-color images correctly running idl 5.5.
> I run the following code:

There is a color table bug in IDL 5.5 for Linux. See this
article for additional information:

http://www.dfanning.com/idl5_info/colorbug.html

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Color tables in idl5.5
Next Topic: IDL on FreeBSD

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

Current Time: Sun Oct 12 02:03:45 PDT 2025

Total time taken to generate the page: 0.56201 seconds