Re: Help! Color tables - decomposed=0? [message #14818 is a reply to message #14813] |
Fri, 26 March 1999 00:00   |
Phil Aldis
Messages: 11 Registered: February 1999
|
Junior Member |
|
|
In article <36FBC849.D517A7C5@indra.com>,
mbennett@indra.com wrote:
> 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?
> Thanks in advance for any advice -
>
> Med Bennett
>
>
The first thing I would say is that, although I'm not exactly sure, I think
there were some "issues" with IDL 5.0.3 and some of these were to do with
colour. However you want to wait for someone who's been using IDL for longer
than 6 months to answer that one. Don't worry David Fanning will almost
certainly reply to the post because he's always a bit of a sucker for any
question to do with colour.
However that aside I think the main thing is to ask you if you could put up
the code for when you called the plots function. I did the following on my
Windows NT machine, which I ran in 16 bit colour mode. (I got exactly the
same help, /dev as you. )
IDL> Loadct, 13
IDL> PLOT, Findgen(256), /NODATA
IDL> PLOTS, Findgen(256), Findgen(256), COLOR = Findgen(256), /DATA
This produced a lovely diagonal line, which ramped nicely through all the
colour table values.
If you post the code that you used to create the line plot, then it will be
easier to help you. Although, as I said, it might be something to do with the
version of IDL.
Cheers,
Phil Aldis
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
|
|
|