Ask Your Question

how do i plot 3d planes like x=1

asked 2015-03-08 04:22:49 -0500

fredsmith999 gravatar image

updated 2015-03-08 13:51:12 -0500

I plotted z=x^2+y^2 and would like to add some planes to the diagram. How do i plot x=1?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-03-08 05:54:44 -0500

tmonteil gravatar image

updated 2015-03-08 06:00:31 -0500

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,8))

Then you can add them on a common plot:

sage: F+P
edit flag offensive delete link more


thanks a lot, didn't know could use lambda to pass functions in sage (completely new to this package)

fredsmith999 gravatar imagefredsmith999 ( 2015-03-08 06:18:41 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2015-03-08 04:22:49 -0500

Seen: 152 times

Last updated: Mar 08 '15