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().

__init__(xs, ys, zs, *args, **kwargs)[source]

Keyword arguments are passed onto Line2D().

__module__ = 'mpl_toolkits.mplot3d.art3d'
draw(renderer)[source]

Draw the Artist (and its children) using the given renderer.

This has no effect if the artist is not visible (Artist.get_visible returns False).

Parameters:
rendererRendererBase subclass.

Notes

This method is overridden in the Artist subclasses.

get_data_3d()[source]

Get the current data

Returns:
verts3dlength-3 tuple or array-like

The current data as a tuple or array-like.

set_3d_properties(zs=0, zdir='z')[source]
set_data_3d(*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)

Examples using mpl_toolkits.mplot3d.art3d.Line3D