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 #91969 is a reply to message #91965] Thu, 24 September 2015 02:24 Go to previous messageGo to previous message
liam.steele is currently offline  liam.steele
Messages: 13
Registered: September 2015
Junior Member
On Wednesday, 23 September 2015 20:57:41 UTC+1, David Fanning wrote:
> 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.")

Thanks David.

I have always plotted this way though, and have never noticed a problem before.

In the example I provided, ccol[60] shows as white, and ccol[82] shows as black. So if I choose to use only 59 colours there is no problem, but any more and the white and then black lines show up.

I'm just stumped as to why it won't work. It has device,decomposed=0, has loaded a set number of colours, and has given them an index. Maybe I should just ignore it and do something else, but it's bugging me!
[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 13:53:35 PDT 2025

Total time taken to generate the page: 0.00440 seconds