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

Home » Public Forums » archive » Re: Help! Color tables - decomposed=0?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Help! Color tables - decomposed=0? [message #14818 is a reply to message #14813] Fri, 26 March 1999 00:00 Go to previous messageGo to previous message
Phil Aldis is currently offline  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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: envi animation to avi?
Next Topic: Re: How to find points inside a bounding polygon?

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

Current Time: Sat Oct 11 04:28:59 PDT 2025

Total time taken to generate the page: 0.96682 seconds