You are reading an old version of the documentation (v3.1.0). For the latest version see
Version 3.1.0
Fork me on GitHub


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

renderer : RendererBase subclass.

Get the current data

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

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


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