Plot
Surfaces and series
| Use | To draw |
|---|---|
ax.plot_surface(f), ax.plot_parametric_surface(f) | A height z = f(x, y) or points [x, y, z] returned by f(u, v). |
ax.plot_parametric_curve(f), ax.plot_line_graph(points), ax.scatter(points) | A curve or points in three-dimensional data coordinates. |
SurfaceGrid, Wireframe, Path3D, Scatter3D, Arrow3D | Geometry in world coordinates, such as [20pt, 30pt, 0pt]. |
Series in one Scene3D share its camera. Animate its camera, depth, or series list from signals. Use SurfaceGrid for a surface with live vertices. Set perspective=true for perspective or animate zoom, roll, and elevation. Use project3d(point, camera, depth=depth) to make an upright label follow a point. See 3D scenes for meshes and solids.
ax.c2p([x, y, z]) converts data coordinates to world lengths. ax.p2c(point) converts back. If you already have a list of sampled data points, ax.plot_line_graph(points) maps them through the axes and connects them in order.
Use Flow fields to sample a vector field or follow its streamlines.