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

Home » Public Forums » archive » Problem with X display
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
Problem with X display [message #6694] Fri, 26 July 1996 00:00
MICHEL KRUGLANSKI is currently offline  MICHEL KRUGLANSKI
Messages: 14
Registered: August 1996
Junior Member
Hi,

I work on a DEC alpha station 600 with a ZLXPE2 24-planes graphic card.
I use either IDL or PV-WAVE.

I have a problem when I try to use 256 colors.

idl (or wave)
> print,!d.n_colors
256
> window,col=256
> print,!d.n_colors
16777216

The variable !d.ncolors provide a wrong information and, therefore,
I can not load correctly a color table.

> loadct,5
% LOADCT: Loading table STD GAMMA-II
> palette

I get colors from black to dark blue, i.e. the begin of the color table.

Does anybody know a solution?

Michel K.
IASB
Re: Problem with X display [message #6695 is a reply to message #6694] Fri, 26 July 1996 00:00 Go to previous message
Liam Gumley is currently offline  Liam Gumley
Messages: 473
Registered: November 1994
Senior Member
MICHEL KRUGLANSKI wrote:
> I work on a DEC alpha station 600 with a ZLXPE2 24-planes graphic card.
> I use either IDL or PV-WAVE.
> I have a problem when I try to use 256 colors.
> idl (or wave)
>> print,!d.n_colors
> 256
>> window,col=256
>> print,!d.n_colors
> 16777216

In IDL, try this immediately after startup:

device,pseudo=8
window,colors=256
print,!d.n_colors

Note that the 'device' command as shown and the 'colors' keyword to 'window'
only have an effect before any windows are opened. Once set, these
options remina set for the rest of the IDL session.

Cheers,
Liam.
Re: Problem with X display [message #6697 is a reply to message #6694] Fri, 26 July 1996 00:00 Go to previous message
David Foster is currently offline  David Foster
Messages: 341
Registered: January 1996
Senior Member
MICHEL KRUGLANSKI <M.Kruglanski@oma.be> wrote:

> I work on a DEC alpha station 600 with a ZLXPE2 24-planes graphic card.
> I use either IDL or PV-WAVE.
>
> I have a problem when I try to use 256 colors.
>
> idl (or wave)
>> print,!d.n_colors
> 256
>> window,col=256
>> print,!d.n_colors
> 16777216


If you have 256 colors available, then the possible color
indices are 0 - 255; you are requesting a color that is
"out of range". It looks like your system is changing the
visual class for you when you request a color that it
cannot provide.

This seems too easy. Please excuse me if I'm having a
"technically challenged" day.

Dave Foster
foster@bial1.ucsd.edu
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: a BUG or not a BUG in IDL ?
Next Topic: Visual Numerics Web News

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

Current Time: Wed Oct 08 13:47:14 PDT 2025

Total time taken to generate the page: 0.00538 seconds