Re: Help! Color tables - decomposed=0? [message #14813] |
Fri, 26 March 1999 00:00 |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Phil Aldis (philaldis@geocities.com) writes:
> 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.
My wife was saying, just the other night, she thought
I was becoming a bit too predicable...I'm sure, now, this
is what she meant by that remark... :-(
Cheers,
David
P.S. Let's just say she asked me to spend less time
responding to IDL newsgroup questions after I tuck
the kids into bed at night.
But I am a damn sucker for those color questions. :-(
--
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
|
|
|
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
|
|
|
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.]
|
|
|
Re: Help! Color tables - decomposed=0? [message #14821 is a reply to message #14813] |
Fri, 26 March 1999 00:00  |
Liam Gumley
Messages: 473 Registered: November 1994
|
Senior Member |
|
|
Med Bennett 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?
I've seen this problem myself with IDL 5.1 and 5.2 under Windows98. The
solution was to not use a 16-bit display mode. In my experience, IDL
only supports 8 bit and 24 bit display modes reliably under Windows.
---
Liam E. Gumley
Space Science and Engineering Center, UW-Madison
http://cimss.ssec.wisc.edu/~gumley
|
|
|