plopp.backends.pythreejs.scatter3d.Scatter3d#

class plopp.backends.pythreejs.scatter3d.Scatter3d(*, canvas, x, y, z, data, uid=None, size=1, color=None, colormapper=None, artist_number=0, opacity=1, pixel_size=None)[source]#

Artist to represent a three-dimensional point cloud/scatter plot.

Parameters:
  • canvas (Canvas) – The canvas that will display the scatter plot.

  • 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.

  • uid (Optional[str], default: None) – The unique identifier of the artist. If None, a random UUID is generated.

  • 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).

  • colormapper (Optional[ColorMapper], default: None) – The colormapper to use for the scatter plot.

  • artist_number (int, default: 0) – Number of the artist (can be used to set the color of the artist).

  • 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, uid=None, size=1, color=None, colormapper=None, artist_number=0, opacity=1, pixel_size=None)[source]#

Methods

__init__(*, canvas, x, y, z, data[, uid, ...])

bbox(xscale, yscale, zscale)

The bounding box of the scatter points.

notify_artist(message)

Receive notification from the colormapper that its state has changed.

remove()

Remove the point cloud from the canvas.

update(new_values)

Update point cloud array with new values.

Attributes

data

Get the point cloud data.

opacity

Get the material opacity.