Re: ARG! Direct Color problem IDL 5.5/Linux (decomposed doesn't help) [message #29199 is a reply to message #29194] |
Thu, 07 February 2002 02:23   |
Nigel Wade
Messages: 286 Registered: March 1998
|
Senior Member |
|
|
Robert Stockwell wrote:
> Greetings all,
> its been hours since a post about colors, so I
> figured I volunteer a post.
>
> I have IDL 5.5 on Redhat Linux 7.2 running KDE
> in 24bit color mode.
Snap.
>
> I cannot get proper colors to show up on screen
> (they are fine in postscript files though).
It can be somewhat troublsome.
>
> I have tried the conventional wisdom, ensuring I
> am in 24 bit mode, setting the decomposed keyword, etc.
> But nothing works. I have gone through every keyword
> that device will take (true_color=24, direct_color=24,
> translation, etc), and toggled all the relevant
> sounding ones to no avail (it seems to be in Direct
> Color mode no matter what I do, note below where I
> set true_color = 24, but it is still in direct color).
>
Are you doing this before you create any windows? Once IDL has created a
window, even if it hasn't actually displayed it on the screen yet, the X
visual is decided and cannot be changed. This is the reason it's usually
placed in the idl_startup file, so you know it's done before any windows
can be created.
This incantation seems to work (xloadct displays correctly):
device,true=24
window,/pixmap &wdelete ; fix the IDL 5.5/Linux colour problem
device,bypass_translation=0
> image = dist(100)
> loadct,13
>
> shade_surf,image,shade=bytscl(image)
>
This shows a shaded surface with red at the peak, going down to blue at the
corners. The axes are in red. Is this what was intended?
--
-----------------------------------------------------------
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
|
|
|