Re: [Matplotlib-users] Level surface of a function of 3 variables

2010-09-17 Thread Dale Lukas Peterson
David, I'm not sure I understand how I would make use of my function then. My function needs to be evaluated over a 3-d mesh (x, y, and z) , and then the level surfaces (not contour lines) calculated. I guess I could treat z as a parameter, then plot the zero level contour lines of my

Re: [Matplotlib-users] Level surface of a function of 3 variables

2010-09-17 Thread Fernando Perez
Hi Luke, On Fri, Sep 17, 2010 at 5:49 PM, Dale Lukas Peterson hazelnu...@gmail.com wrote:  I'm not sure I understand how I would make use of my function then.  My function needs to be evaluated over a 3-d mesh (x, y, and z) , and then the  level surfaces (not contour lines) calculated.  I

Re: [Matplotlib-users] Level surface of a function of 3 variables

2010-09-17 Thread Jason Grout
On 9/17/10 9:08 PM, Fernando Perez wrote: Hi Luke, On Fri, Sep 17, 2010 at 5:49 PM, Dale Lukas Peterson hazelnu...@gmail.com wrote: I'm not sure I understand how I would make use of my function then. My function needs to be evaluated over a 3-d mesh (x, y, and z) , and then the

[Matplotlib-users] Level surface of a function of 3 variables

2010-09-15 Thread Luke
I have a function of three variables and am interested in plotting the zero level surface: f(x,y,z) = 0 Is there a simple way to plot this level surface in 3-D without having to resort to meshing up x and y, and solving for the z that satisfies the equation? I can do this, but it gets messy

Re: [Matplotlib-users] Level surface of a function of 3 variables

2010-09-15 Thread Daπid
I think you can make it with pyplot.contourf() and the argument V http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.contour contour(Z,V) contour(X,Y,Z,V) draw contour lines at the values specified in sequence V On Wed, Sep 15, 2010 at 9:02 PM, Luke hazelnu...@gmail.com