Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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 http://www.sagemath.org/doc/reference/sage/plot/plot3d/implicit_plot3d.html for more details. It would be great to add this sort of functionality to parametric plots.