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

Home » Public Forums » archive » White and black colours appearing when selecting colour table
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: White and black colours appearing when selecting colour table [message #91965 is a reply to message #91961] Wed, 23 September 2015 12:57 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
liam.steele@gmx.co.uk writes:

> I am wanting to draw a certain number of contours, each with a different colour ranging from blue to red. However, when I select the colour table and set the number of colours, I get a random white and black line appearing.
>
> I've included a simple example below, and the resulting image I get can be found here: http://s7.postimg.org/bm8svkbnv/idl.png
>
> I know there is obviously something simple I'm forgetting to do, but I just can't think what it is!

If you really *have* to use indexed color (and there has been no reason
to since, I don't know, the turn of the century, probably), then you are
going to have to load your color table before you try to do anything
that uses those colors.

You would find life SO much easier it you turned color decomposition on
and just used Coyote Library routines to do your plotting. Everything
will just *work* then, without you having to spend any time thinking
about it. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: launch a file
Next Topic: Plot

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

Current Time: Wed Oct 08 19:24:35 PDT 2025

Total time taken to generate the page: 0.00441 seconds