Hi all,

I'm trying to make 3D plots but I'm not able to:
1. Put labels on the axes,
2. Create a surface, say F(x,y,z)=0, of z=f(x,y) together with some
level curves. The only level curves I can plot lie on a 2d plot.

On the ther hand I'can't figure what's wrong with:

var('x, y, z');
@interact
def _(a=(-1,1,.1),b=(-1,1,.1),c=(-2,2,.2)):
    A1 = implicit_plot3d(z==c,(x,-2.1,2),(y,-2,2),(z,-2,2),
color='red', opacity=0.25, axes=true)
    A2 = implicit_plot3d(y==c,(x,-2.1,2),(y,-2,2),(z,-2,2),
color='orange', opacity=0.25, axes=true)
    A3 = implicit_plot3d(x==c,(x,-2.1,2),(y,-2,2),(z,-2,2),
color='green', opacity=0.25, axes=true)
    S = plot3d(a*x^2-b*y^2,(x,-2,2),(y,-2,2))
def _(which_figure=[A1,A2,A3]):
     show(S+which_figure)

I'm trying to make a single plot in which I can show to my students
the intersections of a surface with the planes x, y, z= constant,
choosing which plane, and at what value to show together with the
surface.

Thanks

JC

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to