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

Home » Public Forums » archive » Re: IDL/Linux color table problems
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: IDL/Linux color table problems [message #33087] Thu, 05 December 2002 00:41
Bringfried Stecklum is currently offline  Bringfried Stecklum
Messages: 75
Registered: January 1996
Member
Chris wrote:
>
> Can someone point me to some good fixes for dealing with the color
> table problem when running IDL under Linux? (When I load a color table
> into IDL under linux, I only get grey-scaled images unless I grab the
> window - at which time it takes over the color table for the rest of
> the display). FWIW, I'm working with IDL 5.4, on Redhat Linux.
>
> TIA,
>
> Chris

I had the same behaviour since IDL used the DirectColor visual.
Just put "idl.gr_visual: TrueColor" in your .Xdefaults file.
Then it will use TrueColor instead.

regards,

B.St.

--
Bringfried Stecklum
Th"uringer Landessternwarte Tautenburg
Sternwarte 5, D - 07778 Tautenburg, Germany
Phone: +49-36427-863-54, FAX: +49-36427-863-29
Re: IDL/Linux color table problems [message #33110 is a reply to message #33087] Tue, 03 December 2002 09:22 Go to previous message
Karl Schultz is currently offline  Karl Schultz
Messages: 341
Registered: October 1999
Senior Member
"David Oesch" <oesch@giub.unibe.ch> wrote in message
news:3DECC898.4070306@giub.unibe.ch...
> Try
>
> http://www.rsinc.com/services/output.cfm?tip_id=3318

This tip really only applies to IDL 5.5 on some 24-bit X servers. The OP is
using IDL 5.4 and probably an 8-bit X server.

It is hard to diagnose the problem exactly, but this sounds like the classic
X "technicolor" problem that is common to many color intensive applications
running on 8-bit X servers. There is some discussion of this issue in the
IDL docs. The basic problem arises because multiple X clients are competing
for a limited set of colors in the 256-color X color table (colormap). Here
are a few general suggestions:

- Configure your X server to start in 16-bit or 24-bit mode, if your video
system supports it. If you are running XFree86, try one of the various X
configuator programs that come with your Linux distro.
- Reduce the color requirements of your other clients. This might mean
shutting down some "color hogs" like image editors and viewers.
- Your window manager and desktop gadgets are clients too. Many desktops
have applets that let you set the number of colors your desktop will use up.
In the extreme case, you can perhaps get it down to two - black and white,
as is possible with CDE.
- Reduce the color demands of IDL. See the IDL help items for using color
in the X windows environment.

If you are absolutely stuck on 8-bit and your IDL app needs to display
(nearly) 256 private colors, then it is pretty hard to avoid the flashing
"technicolor" effect. A lot of 8-bit X windows users accept and tolerate
this effect; it has been around for over a decade.

We can get into more detail here, if you like.

Karl
Re: IDL/Linux color table problems [message #33111 is a reply to message #33110] Tue, 03 December 2002 07:07 Go to previous message
David Oesch is currently offline  David Oesch
Messages: 31
Registered: October 2000
Member
Try

http://www.rsinc.com/services/output.cfm?tip_id=3318

Cheers

Dave
_________________________________________________

David Oesch - Remote Sensing Research Group

Department of Geography

University of Bern Tel : +41 (0)31 631 8020
Hallerstr. 12 Fax : +49 (0)89 2443 43780
CH - 3012 Bern Mail: David.Oesch@giub.unibe.ch
Switzerland http://www.giub.unibe.ch/remsen

Remote Sensing is...
Staying as far away from the problem as possible.
- G. Archer, World Bank
_________________________________________________
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Having problems with the modulo operator
Next Topic: Re: builtin simplex?

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

Current Time: Wed Oct 08 17:02:53 PDT 2025

Total time taken to generate the page: 0.00573 seconds