Hi Bruce,
why don't you use contour as in the following ;-)
contour(X,Y,Z,V)
# - draw contour lines at the values specified in sequence *V*
like in
x, y = np.meshgrid(np.linspace(0, 1, 100), np.linspace(0, 1, 50))
z = x**4 - x**2 + np.sin(y)
contour(x, y, z, [-0.2, 0.0, 0.2, 0.4, 0.6, 0.8])
Thanks for this. I didn't realize that N could be an array and
contour would know that these are the levels desired.
I found similar in an example, but not in the contour documentation.
Thanks so much!
Bruce
---
Bruce W. Ford
Clear Science, Inc.
On Friday 12 February 2010 15:11:17 Bruce Ford wrote:
Thanks for this. I didn't realize that N could be an array and
contour would know that these are the levels desired.
I found similar in an example, but not in the contour documentation.
Just a remark: I use the help of IPython to
In using the contour as in:
contour(X,Y,Z,N)
N is a number of automatically chosen levels.
I would like to contour based on data divisions.
For instance, perhaps I'd like to use a contour or color-fill
(contourf) every 2 units. I'm not seeing how to accomplish this. Any
points in the right