Bases: Line2D
3D line object.
Note
Use get_data_3d to obtain the data associated with the line. get_data, get_xdata, and get_ydata return the x- and y-coordinates of the projected 2D-line, not the x- and y-data of the 3D-line. Similarly, use set_data_3d to set the data, not set_data, set_xdata, and set_ydata.
The x-data to be plotted.
The y-data to be plotted.
The z-data to be plotted.
Additional arguments are passed to Line2D.
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).
RendererBase subclass.
This method is overridden in the Artist subclasses.
Get the current data
The current data as a tuple or array-like.
Set multiple properties at once.
Supported properties are
Property | Description |
|---|---|
float or array of floats | |
a filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array and two offsets from the bottom left corner of the image | |
scalar or None | |
bool | |
| bool |
| |
bool | |
Patch or (Path, Transform) or None | |
| |
| |
| |
sequence of floats (on/off ink in points) or (None, None) | |
(2, N) array or two 1D arrays | |
unknown | |
| {'default', 'steps', 'steps-pre', 'steps-mid', 'steps-post'}, default: 'default' |
{'full', 'left', 'right', 'bottom', 'top', 'none'} | |
color or None | |
str | |
bool | |
object | |
| {'-', '--', '-.', ':', '', (offset, on-off-seq), ...} |
| float |
marker style string, | |
| |
| float |
| |
| |
| float |
None or int or (int, int) or slice or list[int] or float or (float, float) or list[bool] | |
bool | |
list of | |
float or callable[[Artist, Event], tuple[bool, dict]] | |
float | |
bool | |
(scale: float, length: float, randomness: float) | |
bool or None | |
| |
| |
str | |
bool | |
1D array | |
1D array | |
float |
Set the z position and direction of the line.
The location along the zdir axis in 3D space to position the line.
Plane to plot line orthogonal to. Default: 'z'. See get_dir_vector for a description of the values.
Set the x, y and z data
The x-data to be plotted.
The y-data to be plotted.
The z-data to be plotted.
Accepts x, y, z arguments or a single array-like (x, y, z)
mpl_toolkits.mplot3d.art3d.Line3D
© 2012–2023 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/stable/api/_as_gen/mpl_toolkits.mplot3d.art3d.Line3D.html