You are reading an old version of the documentation (v3.1.0). For the latest version see https://matplotlib.org/stable/api/_as_gen/mpl_toolkits.mplot3d.art3d.Line3D.html
Version 3.1.0
matplotlib
Fork me on GitHub

mpl_toolkits.mplot3d.art3d.Line3D

class mpl_toolkits.mplot3d.art3d.Line3D(xs, ys, zs, *args, **kwargs)[source]

Bases: matplotlib.lines.Line2D

3D line object.

Keyword arguments are passed onto Line2D().

draw(self, renderer)[source]

Draw the Artist using the given renderer.

This method will be overridden in the Artist subclasses. Typically, it is implemented to not have any effect if the Artist is not visible (Artist.get_visible is False).

Parameters:
renderer : RendererBase subclass.
get_data_3d(self)[source]

Get the current data

Returns:
verts3d : length-3 tuple or array_likes

The current data as a tuple or array_likes

set_3d_properties(self, zs=0, zdir='z')[source]
set_data_3d(self, *args)[source]

Set the x, y and z data

Parameters:
x : array_like

The x-data to be plotted

y : array_like

The y-data to be plotted

z : array_like

The z-data to be plotted

Notes

Accepts x, y, z arguments or a single array_like (x, y, z)