Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
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
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.
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