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

Home » Public Forums » archive » very simple but weird problem with CONTOUR
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
very simple but weird problem with CONTOUR [message #81281] Sat, 01 September 2012 11:11
mxfong2012 is currently offline  mxfong2012
Messages: 5
Registered: September 2012
Junior Member
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Read Large files
Next Topic: Horizontal Histogram Plots

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

Current Time: Wed Oct 08 18:41:15 PDT 2025

Total time taken to generate the page: 0.00780 seconds