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()
.-
__module__ = 'mpl_toolkits.mplot3d.art3d'
-
draw(self, 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(self)
[source] -
Get the current data
Returns: -
verts3dlength-3 tuple or array-like
-
The current data as a tuple or array-like.
-
-
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)
-
-
Examples using mpl_toolkits.mplot3d.art3d.Line3D
© 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.3.3/api/_as_gen/mpl_toolkits.mplot3d.art3d.Line3D.html