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

Home » Public Forums » archive » Re: very simple but weird problem with CONTOUR
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: very simple but weird problem with CONTOUR [message #81280 is a reply to message #81278] Sat, 01 September 2012 11:41 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
mxfong2012@gmail.com writes:

> 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

If your maximum level is 0.5, and your first contour
is going to be drawn at 1.0, then all you can expect
to see is the background (black) of your contour plot. :-)

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Horizontal Histogram Plots
Next Topic: Cost of student version of IDL

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

Current Time: Sat Oct 11 09:21:54 PDT 2025

Total time taken to generate the page: 1.67906 seconds