Ask Your Question

parametric plotting over regions bounded by two curves in the plane

asked 2011-10-08 14:08:35 +0200

ahausknecht gravatar image

Hi all,

Maple's parametric plot3d command allows the limits of the second of the two parameters to be functions of the first. For example, to plot the intersection of two circular cylinders enter

c1 := plot3d([cos(t), y, sin(t)], t = 0 .. 2*Pi, y = -sin(t) .. sin(t), color = green)
c2 := plot3d([cos(t), sin(t), z], t = 0 .. 2*Pi, z = -sin(t) .. sin(t), color = blue)
display(c1, c2)

This generates a plot of the intersection region with the portions of the cylinders extending beyond the region removed. Is it possible todo the same with Sage's plot3d commands?


Adam Hausknecht

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2011-10-08 15:16:48 +0200

Jason Grout gravatar image

We have a "region" argument to implicit_plot3d that is something like that:

implicit_plot3d((x^2 + y^2 + z^2), (x, -2, 2), (y, -2, 2), (z, -2, 2), plot_points=60, contour=[1,3,5], region=lambda x,y,z: x<=0.2 or y>=0.2 or z<=0.2)

See for more details. It would be great to add this sort of functionality to parametric plots.

edit flag offensive delete link more


You can now use "add_condition" on any surface object.

FrédéricC gravatar imageFrédéricC ( 2020-06-03 17:48:40 +0200 )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

1 follower


Asked: 2011-10-08 14:08:35 +0200

Seen: 960 times

Last updated: Oct 08 '11