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

Home » Public Forums » archive » Color Problems in IDL for Linux (Gnome)
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
Color Problems in IDL for Linux (Gnome) [message #25908] Tue, 24 July 2001 13:33 Go to next message
Sdavis is currently offline  Sdavis
Messages: 12
Registered: July 1998
Junior Member
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>

<pre>Well, I know we have all struggled with colors in IDL&nbsp;at one point or another, but I&nbsp;am currently having a problem which</pre>

<pre>is beyond the usual frustrations people have with colors in IDL.</pre>

<pre></pre>

<pre>Essentially, when I&nbsp;make a plot, the colors are in black and white until i click on the upper-bar of the window that i'm interested</pre>

<pre>in seeing. Then, if there are any colors, the will be shown only as long as my mouse is over the window of interest!!!</pre>

<pre></pre>

<pre>This seems like a flaw in Gnome, because I can re-login using the FVWM window manager and everything works fine.</pre>

<pre></pre>

<pre>Any thoughts on this?</pre>

<pre></pre>

<pre>-Sean</pre>

<pre></pre>

<pre></pre>

<pre>--&nbsp;
&lt;>&lt;>&lt;>&lt;>&lt;>&lt;>&lt; >&lt;>&lt;>&lt;>&lt;>&lt;>&lt;>&lt; >&lt;>&lt;>&lt;>&lt;>&lt;>&lt;>&lt; >&lt;>&lt;>&lt;>&lt;>&lt;>&lt;>&lt; >&lt;>&lt;>&lt;>&lt;>&lt;>&lt;>&lt; >&lt;>&lt;>&lt;>&lt;>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Sean M. Davis
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ___ o&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ; __&nbsp;&nbsp; __&nbsp;&nbsp; sdavis@nis.lanl.gov
&nbsp;&nbsp; |\/&nbsp; o\ o&nbsp; ,,,,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ) `-'. \&nbsp; NIS-1
&nbsp;&nbsp; |/\___/&nbsp;&nbsp; (::::[||||||||||||||#==#[| Los Alamos National Laboratory
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; ''&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp; ).-.__/&nbsp;&nbsp; 505-667-8784
&lt;>&lt;>&lt;>&lt;>&lt;>&lt;>&lt; >&lt;>&lt;>&lt;>&lt;>&lt;>&lt;>&lt; >&lt;>&lt;>&lt;>&lt;>&lt;>&lt;>&lt; >&lt;>&lt;>&lt;>&lt;>&lt;>&lt;>&lt; >&lt;>&lt;>&lt;>&lt;>&lt;>&lt;>&lt; >&lt;>&lt;>&lt;>&lt;></pre>
&nbsp;</html>
Re: Color problems in IDL [message #26011 is a reply to message #25908] Wed, 01 August 2001 11:48 Go to previous message
david[2] is currently offline  david[2]
Messages: 100
Registered: June 2001
Senior Member
Adam Rankin writes:

> I turned off decomposition but I don't know how to ?customize? my own
> color tables, is there some sort of tutorial or help page on the net. I
> tried RSInc.com and well, didn't find much/ =(

Well, I'd turn color decomposition ON. *Then* if
you still see color images you will know you have
color images. :-)

Or, I'd load a color table:

IDL> LoadCT, 0

> Dargh, oh to be older and smarter!

Yeah, my wish too. :-(

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: Color problems in IDL [message #26012 is a reply to message #25908] Wed, 01 August 2001 11:25 Go to previous message
Adam Rankin is currently offline  Adam Rankin
Messages: 15
Registered: July 2001
Junior Member
I turned off decomposition but I don't know how to ?customize? my own
color tables, is there some sort of tutorial or help page on the net. I
tried RSInc.com and well, didn't find much/ =(

I looked at the previous post and added the IDL. lines and I am now
running 24 bit color on the remote machine, when I do a
device, get_visual_depth without changing anything it says 24-bit color.

To me everything is running in 24 bit color and my images should be in
b/w. but their not.

Dargh, oh to be older and smarter!

-Adam

On Wed, 1 Aug 2001, Pavel A. Romashkin wrote:

> Could that have to do with the way IDL starts up on the remote machine?
> It is probably different from the settings you have on yours. Did you
> try to set decomposition off during the remote session? Did you load
> color tables in it?
> Cheers,
> Pavel
>
> Adam Rankin wrote:
>>
>> I remotely login to another machine and run IDL/ENVI, I load DICOM images
>> and simply open them. When they display, they are no longer in a b/w
>> format as they used to be when I ran IDL/ENVI locally. I looked at color
>> tables and how IDL does color decomposition and still nothing made sense,
>>
>> Any thoughts?
>>
>> -Adam Rankin
>
Re: Color problems in IDL [message #26013 is a reply to message #25908] Wed, 01 August 2001 11:11 Go to previous message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
Could that have to do with the way IDL starts up on the remote machine?
It is probably different from the settings you have on yours. Did you
try to set decomposition off during the remote session? Did you load
color tables in it?
Cheers,
Pavel

Adam Rankin wrote:
>
> I remotely login to another machine and run IDL/ENVI, I load DICOM images
> and simply open them. When they display, they are no longer in a b/w
> format as they used to be when I ran IDL/ENVI locally. I looked at color
> tables and how IDL does color decomposition and still nothing made sense,
>
> Any thoughts?
>
> -Adam Rankin
Re: Color problems in IDL [message #26015 is a reply to message #25908] Wed, 01 August 2001 11:18 Go to previous message
david[2] is currently offline  david[2]
Messages: 100
Registered: June 2001
Senior Member
Adam Rankin writes:
>
> I remotely login to another machine and run IDL/ENVI, I load DICOM images
> and simply open them. When they display, they are no longer in a b/w
> format as they used to be when I ran IDL/ENVI locally. I looked at color
> tables and how IDL does color decomposition and still nothing made sense,

You mean you *explicitly* load a gray-scale
color table before you display the images and
they are *still* displayed in color!? Weird.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: Color Problems in IDL for Linux (Gnome) [message #26054 is a reply to message #25908] Tue, 31 July 2001 09:11 Go to previous message
cjc5 is currently offline  cjc5
Messages: 1
Registered: July 2001
Junior Member
On Tue, 31 Jul 2001 14:52:07 -0000, Steve Smith<steven_smith> <nobody@nowhere.com> wrote:
>
> You can pre-set the colors idl uses in .Xdefaults, I believe. Also, Gnome
> is a desktop environment, not a window manager, last time I installed it.
> You must be using Enlightenment or BlackBox maybe? I use Gnome / Enlightement
> currently (with IDL), I used to have to put a few lines like:
>
> #idl.colors: 16777216 <------ note this is commented out!
> idl.gr_depth: 24
> idl.retain: 2
> idl.gr_visual: TrueColor
>
> in .Xdefaults to get color working in X w/idl (that was using AfterStep wm).
> Most important is idl.retain, which tells IDL to handle the window's backing
> -store, instead of the window manager. You may want to try that.

Thanks. I was having a similar problem and this solved it. This is
on a RH7.1 system with gnome-1.4 and sawfish-0.38. The 3 settings
listed above seem to do the trick.

Craig

--
Craig J Copi | cjc5@po.cwru.edu
Case Western Reserve University | http://erebus.phys.cwru.edu/~copi/
Department of Physics | (216) 368-8831
Re: Color Problems in IDL for Linux (Gnome) [message #26058 is a reply to message #25908] Tue, 31 July 2001 07:52 Go to previous message
nobody@nowhere.com (S is currently offline  nobody@nowhere.com (S
Messages: 55
Registered: July 2001
Member
On Sun, 29 Jul 2001 09:24:45 +0200, Reimar Bauer <r.bauer@fz-juelich.de> wrote:
> Sean Davis wrote:
>>
>> Craig Markwardt wrote:
>>
>>> Sean Davis <sdavis@nis.lanl.gov> writes:
>>> [reformatted for the bleary-eyed]
>>>> Well, I know we have all struggled with colors in IDL at one point
>>>> or another, but I am currently having a problem which is beyond the
>>>> usual frustrations people have with colors in IDL.
>>>>
>>>> Essentially, when I make a plot, the colors are in black and white
>>>> until i click on the upper-bar of the window that i'm interested
>>>> in seeing. Then, if there are any colors, the will be shown only as
>>>> long as my mouse is over the window of interest!!!
>>>>
>>>> This seems like a flaw in Gnome, because I can re-login using the
>>>> FVWM window manager and everything works fine.
>>>
>>> The answer may be that (a) you have an 8-bit display; and (b) Gnome
>>> uses up all of the colors in your color table, while FVWM does not.
>>> If your graphics card is capable, you may be able to investigate
>>> moving up to 24-bit, but you will need someone experienced in
>>> configuring your X-server. Don't choose 16-bit or you'll be sorry.
>>>
>>
>> Well, I do have 24-bit color so that rules that out. Maybe Gnome uses up all
>> of the colors, which still doesn't make
>> sense because the colors can be seen by me clicking on the window of
>> interest.
>>
>
> Dear Sean,
>
> how much colors do you really have by idl.
> Please show us !d.n_colors.
>
> If you have only 256 colors then I belive you have some problems
> by your idl_startup.
>
> regards
> Reimar
>
>
> --
> Reimar Bauer
>
> Institut fuer Stratosphaerische Chemie (ICG-1)
> Forschungszentrum Juelich
> email: R.Bauer@fz-juelich.de
> http://www.fz-juelich.de/icg/icg1/
> ============================================================ ======
> a IDL library at ForschungsZentrum Juelich
> http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_lib_intro.h tml
>
> http://www.fz-juelich.de/zb/text/publikation/juel3786.html
> ============================================================ ======
>
> read something about linux / windows
> http://www.suse.de/de/news/hotnews/MS.html

You can pre-set the colors idl uses in .Xdefaults, I believe. Also, Gnome
is a desktop environment, not a window manager, last time I installed it.
You must be using Enlightenment or BlackBox maybe? I use Gnome / Enlightement
currently (with IDL), I used to have to put a few lines like:

#idl.colors: 16777216 <------ note this is commented out!
idl.gr_depth: 24
idl.retain: 2
idl.gr_visual: TrueColor

in .Xdefaults to get color working in X w/idl (that was using AfterStep wm).
Most important is idl.retain, which tells IDL to handle the window's backing
-store, instead of the window manager. You may want to try that.
--
Steve S.

steve@NOSPAMmailaps.org
remove NOSPAM before replying
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: PostScript and pixmap
Next Topic: Re: IDL crashing badly on my solaris 8 system

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

Current Time: Wed Oct 08 14:56:12 PDT 2025

Total time taken to generate the page: 0.00512 seconds