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 #81276 is a reply to message #81274] Sat, 01 September 2012 15:20 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
mxfong2012@gmail.com writes:

> Thanks, David, for your response! I am sorry that I don't get it. What did you mean by "your first contour
> is going to be drawn at 1.0"? In my example, I have 6 levels ranging from 0 to 1. By setting max_value=0.5, my intention was to draw the contours only at the levels of 0, 0.2, and 0.4. Please forgive the newbie question, as most of my research is on numerical calculations, and didn't have many experiences on IDL plotting.

My apologies. I was heading out the door and confused the c_levels
variable with the levels variable. Sorry.

Basically, I wouldn't be using the MAX_VALUE keyword
with a contour plot, because "missing values" will be
ignored by the contour algorithm. The result is always
unpredictable, and rarely what you had in mind. If you
want to contour only the first three contours, then just
pass the first three contours to the LEVELS keyword.

And, if I were new to IDL, I'd be using Coyote Graphics
routines, rather than the normal IDL direct graphics
routines. Things will make a good deal more sense to you. :-)

http://www.idlcoyote.com/graphics_tips/coyote_graphics.php

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: Wed Oct 08 19:09:59 PDT 2025

Total time taken to generate the page: 0.00460 seconds