3D Plotting Example
With Color and Transparency
In class, we talked about integrating over the region trapped by , , , , and . I generated a 3D plot in sage to represent this. I used plot_3d
and implicit_plot3d
to make the surfaces (just as we did in our earlier examples), then added the resulting plots to see all of them together. Note that I named the plots and then added them for my own convenience.
Additionally, I added a color
argument to make some of the surfaces green, and also added opacity
to make some of the surfaces see-through. Sage recognizes many color names (in quotes) like "green"
, "red"
, "orange"
, etc., including most colors you can think of (and quite a few you might not). (Type sorted(colors)
at the Sage prompt to get a list of color names Sage recognizes.) The opacity argument can range from 0
(invisible) to 1
(completely opaque).