mpl_toolkits.mplot3d.axes3d.Axes3D.plot#

Axes3D.plot(xs, ys, *args, zdir='z', axlim_clip=False, **kwargs)[source]#

Plot 2D or 3D data.

Parameters:
xs1D array-like

x coordinates of vertices.

ys1D array-like

y coordinates of vertices.

zsfloat or 1D array-like

z coordinates of vertices; either one for all points or one for each point.

zdir{'x', 'y', 'z'}, default: 'z'

When plotting 2D data, the direction to use as z.

axlim_clipbool, default: False

Whether to hide data that is outside the axes view limits.

Added in version 3.10.

**kwargs

Other arguments are forwarded to matplotlib.axes.Axes.plot.

Examples using mpl_toolkits.mplot3d.axes3d.Axes3D.plot#

Animated 3D random walk

Animated 3D random walk

Plot 2D data on 3D plot

Plot 2D data on 3D plot

3D box surface plot

3D box surface plot

Parametric curve

Parametric curve

Lorenz attractor

Lorenz attractor

2D and 3D Axes in same figure

2D and 3D Axes in same figure

fill_between(x1, y1, z1, x2, y2, z2)

fill_between(x1, y1, z1, x2, y2, z2)

plot(xs, ys, zs)

plot(xs, ys, zs)