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:
rendererRendererBase subclass.
get_data_3d(self)[source]

Get the current data

Returns:
verts3dlength-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:
xarray-like

The x-data to be plotted.

yarray-like

The y-data to be plotted.

zarray-like

The z-data to be plotted.

Notes

Accepts x, y, z arguments or a single array-like (x, y, z)