Ask Your Question

Revision history [back]

Plots are objects that can be added, so you can first create the plot of your function:

sage: F = plot3d(lambda x,y: x^2+y^2, [-2,2], [-2,2])

Then the plot of the plane $z=1$

sage: P = implicit_plot3d(lambda x,y,z: z-1, (-2,2), (-2,2), (-2,2))

Then you can add them on a common plot:

sage: F+P

Plots are objects that can be added, so you can first create the plot of your function:

sage: F = plot3d(lambda x,y: x^2+y^2, [-2,2], [-2,2])

Then the plot of the plane $z=1$$x=1$

sage: P = implicit_plot3d(lambda x,y,z: z-1, x-1, (-2,2), (-2,2), (-2,2))

Then you can add them on a common plot:

sage: F+P

Plots are objects that can be added, so you can first create the plot of your function:

sage: F = plot3d(lambda x,y: x^2+y^2, [-2,2], [-2,2])

Then the plot of the plane $x=1$

sage: P = implicit_plot3d(lambda x,y,z: x-1, (-2,2), (-2,2), (-2,2))
(-2,8))

Then you can add them on a common plot:

sage: F+P