plopp.backends.pythreejs.scatter3d.Scatter3d#
- class plopp.backends.pythreejs.scatter3d.Scatter3d(*, canvas, x, y, z, data, size=1, color=None, artist_number=0, opacity=1, pixel_size=None)[source]#
Artist to represent a three-dimensional point cloud/scatter plot.
- Parameters:
x (
str
) – The name of the coordinate that is to be used for the X positions.y (
str
) – The name of the coordinate that is to be used for the Y positions.z (
str
) – The name of the coordinate that is to be used for the Z positions.data (
DataArray
) – The initial data to create the line from.size (
Variable
|float
, default:1
) – The size of the markers.color (
Optional
[str
], default:None
) – The color of the markers (this is ignored if a colorbar is used).opacity (
float
, default:1
) – The opacity of the points.pixel_size (
Union
[Variable
,float
,None
], default:None
) – The size of the pixels in the plot. Deprecated (use size instead).
- __init__(*, canvas, x, y, z, data, size=1, color=None, artist_number=0, opacity=1, pixel_size=None)[source]#
Make a point cloud using pythreejs
Methods
__init__
(*, canvas, x, y, z, data[, size, ...])Make a point cloud using pythreejs
bbox
(xscale, yscale, zscale)The bounding box of the scatter points.
remove
()Remove the point cloud from the canvas.
set_colors
(rgba)Set the point cloud's rgba colors:
update
(new_values)Update point cloud array with new values.
Attributes
data
Get the point cloud data.
opacity
Get the material opacity.