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 function for a discrete number of z values, but then I would need to adjust the height that each countour line is plotted at when I do the 3-d plot. This still would only give bunch of vertically stacked contour lines, rather than a nice smooth 3-d surface.
If I'm misunderstanding what you meant, perhaps you could point me to an example of something that makes a level surface of a function of 3 (not 2) variables? Thanks, ~Luke On Thu, Sep 16, 2010 at 05:28:47AM +0200, Daπid wrote: > 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> wrote: > > 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 because there are anywhere from > > 0 to 2 solutions to the equation for each point in the x-y plane. > > The mplot3d examples all seem to calculate the z-data simply from simple > > functions of x and y. > > Thanks, > > ~Luke > > ------------------------------------------------------------------------------ > > Start uncovering the many advantages of virtual appliances > > and start using them to simplify application deployment and > > accelerate your shift to cloud computing. > > http://p.sf.net/sfu/novell-sfdev2dev > > _______________________________________________ > > Matplotlib-users mailing list > > Matplotlib-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users