plopp.backends.pythreejs.point_cloud.PointCloud#
- class plopp.backends.pythreejs.point_cloud.PointCloud(*, x, y, z, data, pixel_size=1, opacity=1)[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.pixel_size (
Union
[Variable
,float
,int
], default:1
) – The size of the markers.opacity (
float
, default:1
) – The opacity of the points.
Methods
__init__
(*, x, y, z, data[, pixel_size, opacity])Make a point cloud using pythreejs
get_limits
()Get the spatial extent of all the points in the cloud.
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.