David,
I'm not sure I understand how I would make use of my function then.
My function needs to be evaluated over a 3d 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 3d plot.
This still would only give bunch of vertically stacked contour
lines, rather than a nice smooth 3d 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 <hazelnusse@...> 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 3D 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 xy plane.
> > The mplot3d examples all seem to calculate the zdata 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/novellsfdev2dev
> > _______________________________________________
> > Matplotlibusers mailing list
> > Matplotlibusers@...
> > https://lists.sourceforge.net/lists/listinfo/matplotlibusers
> >
> >
