Greetings,
I ran into a very simple but weird problem with CONTOUR. In the below example, everything was fine if I used "max_value=1". But when I changed it to "max_value=0.5", I had nothing but a black window. What is wrong? Am I missing anything here? I am using IDL Version 7.0.4, Mac OS X (darwin x86_64 m64)
Thanks for any advices!
example codes:
X=findgen(6)/5.*2.-1.
Y=X
Z=randomu(1001L, 6,6)
xrange=[-1,1]
yrange=[-1,1]
clevels=[1, 50, 100, 150, 200, 254]
levels=[0, 0.2, 0.4, 0.6, 0.8, 1.0]
loadct, 39
plot, xrange, yrange, position=[0.1, 0.1, 0.9, 0.9], xstyle=5, ystyle=5, /nodata, /noerase
contour, Z, X, Y, position=[0.1, 0.9, 0.1, 0.9], levels=levels, c_colors=clevels, /fill, /overplot, $
xrange=xrange, yrange=yrange, xstyle=5, ystyle=5, xtitle='', ytitle='', max_value=0.5
|