Ask Your Question

Plot Multiple 3D Graphs that overlap

asked 2017-06-17 21:18:10 +0200

happys5 gravatar image


I can graph multiple 3D graphs by adding them together but I can not get them to overlap the way I want. I would like to be able to flip the axis. As an example, I would like to be able to graph the height of the cylindrical_plot3d along the x or y axes in addition to the z axes. Same for the 3d parabola.

theta,y=var('theta,y')#start was z
cylindrical_plot3d(10,(theta,0,2*pi),(y,-2,2)) + plot3d(x^2, (-1,1),(-1,1))

Thanks in advance!

edit retag flag offensive close merge delete


Try sage: parametric_plot3d?

FrédéricC gravatar imageFrédéricC ( 2017-06-18 09:52:09 +0200 )edit

1 Answer

Sort by » oldest newest most voted

answered 2017-06-18 18:41:03 +0200

happys5 gravatar image


I figured out how to graph two graphs in 3D that overlap. The key is "implicit_plot3d." I provide an example. Since x^2 is missing in the equation (y^2 + z^2), the cylinder can be viewed down the x axis. If y^2 is missing (x^2 + z^2), the cylinder will be viewed down the y axis. If z^2 is missing, ect.

var ('x y z')

implicit_plot3d(y^2+z^2==36, (x,-6,6), (y,-6,6), (z,-6, 6), color="blue", figsize=4, opacity=.3, axes="true" ) + plot3d(x^2 + y^2, (-1,1),(-2.3,2.3))
edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

1 follower


Asked: 2017-06-17 21:18:10 +0200

Seen: 752 times

Last updated: Jun 18 '17