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
White and black colours appearing when selecting colour table [message #91961] Wed, 23 September 2015 08:38 Go to previous message
liam.steele is currently offline  liam.steele
Messages: 13
Registered: September 2015
Junior Member
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!

---

window, 0, retain=2
device, decomposed=0

cgloadct, 25, /brewer, /reverse, ncolors=100
ccol = bindgen(100)

plot, [0,1], [0,100], /nodata, $
background=cgcolor('white'), color=cgcolor('black')
for i = 0, 99 do oplot, [0,1], [i,i], color=ccol[i], thick=12

end
[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 09:18:18 PDT 2025

Total time taken to generate the page: 0.00384 seconds