mpl_toolkits.mplot3d.axes3d.Axes3D.plot

Axes3D.plot(xs, ys, *args, zdir='z', **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.

**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

plot(xs, ys, zs)

plot(xs, ys, zs)

© 2012–2023 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/stable/api/_as_gen/mpl_toolkits.mplot3d.axes3d.Axes3D.plot.html