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

Home » Public Forums » archive » Re: Color problems with Linux
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Color problems with Linux [message #15088 is a reply to message #15087] Wed, 21 April 1999 00:00 Go to previous message
Randy Frank is currently offline  Randy Frank
Messages: 2
Registered: April 1999
Junior Member
Brian Jackel wrote:
>
> Greetings
>
> One of my co-workers is having problems with IDL 5.2
> under Red Hat Linux.
>
> After placing the following lines in her .Xdefaults file
>
> idl.gr_visual: PseudoColor
> idl.gr_depth: 8

You are runing into one of two known issues:

What is the default visual depth/class for the X server in
question (use xdpyinfo)? Either the X server being used does not
support a PseudoColor, 8bit visual in which case, you need to
start the server with a different command. If the X server has an
8bit PseudoColor visual, check the output from DEVICE, /HELP. It
is likely that IDL is getting a "private" colormap. In this case,
there is a known bug in fvwm(2) where it does not properly switch
between multiple colormaps in the same widget tree (what IDL uses).
You might be able to get the colormap to swap by using a raw WINDOW
command, but it is iffy. I wrote a patch to fvwm to fix this
problem while I was at RSI, but I don't think the fvwm developers
ever included the patch. Someone at RSI tech support might know
where the patch is though. If your problem is this latter case, you
can also work around the problem by using fewer colors in your IDL
windows.

Hope it helps.
>
> IDL starts up believing that it has 256 colors. The
> problem is that the color table as displayed on the
> screen contains a fixed random assortment of entries
> (at least a hundred, it's hard to tell). Using LOADCT
> or XLOADCT does change the values obtained with
> TVLCT,r,g,b,/GET, but nothing changes on the screen.
>
> As a result, image display is basically useless. This
> is a significant problem for an astronomer who would
> like to display images...
>
> Any hints or suggestions would be most welcome.
>
> --
> Brian Jackel
[Message index]
 
Read Message
Read Message
Previous Topic: standard deviation from LMFIT
Next Topic: Polar treatment of a 2D array

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

Current Time: Sun Oct 12 04:25:04 PDT 2025

Total time taken to generate the page: 1.59499 seconds