Re: Help! Color tables - decomposed=0? [message #14820 is a reply to message #14813] |
Fri, 26 March 1999 00:00   |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Med Bennett (mbennett@indra.com) writes:
> I'm using IDL 5.0.2 on a Win98 platform. My graphics adapter is running
> in 16-bit (65536 color) mode. Despite much experimentation and perusal
> of Dave Fanning's excellent web site, I cannot get the colors to come
> out correctly. I have set decomposed=0 and loaded the rainbow color
> table (#13). If I plot data points with the plots command and a color
> index array, the colors still come out in a black to red continuum, but
> if I issue a command like
>
> tv,congrid(indgen(16,16),160,160)
>
> I see that the colors work as expected for the tv command. I get an
> image showing the rainbow spectrum of colors, as I would like for plots
> commands. How can I make the plots command honor the color table?
Very odd. Here is a session I just ran with my display set to
16-bit color. It works perfectly. (IDL 5.2)
IDL> curve=Loaddata(1)
% Compiled module: LOADDATA.
IDL> x=Findgen(101)
IDL> Device, Decomposed=0
IDL> LoadCT, 13, NColors=101
% Compiled module: LOADCT.
% Compiled module: FILEPATH.
% LOADCT: Loading table RAINBOW
IDL> Plot, x, curve, /NoData
IDL> PlotS, x, curve, Color=Findgen(101)
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
[Note: This follow-up was e-mailed to the cited author.]
|
|
|