On this page
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
(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: -
renderer
RendererBase
subclass.
Notes
This method is overridden in the Artist subclasses.
-
renderer
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
© 2012–2021 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.4.3/api/_as_gen/mpl_toolkits.mplot3d.art3d.Line3D.html