Curves In 3D#

Each of the plot objects are represented by one of the curve objects listed below.

class squap.widgets.curves_3D.ScatterCurve3D(*args, **kwargs)[source]#
set_data(
x=None,
y=None,
z=None,
**kwargs,
)[source]#

Sets the data of the scatter plot item after it has been created. Use either x, y and z or pos to set the coordinates of the points.

Parameters:
  • x (Iterable | None) – New x-locations of each point. Defaults to None, meaning the previous value of x.

  • y (Iterable | None) – New y-locations of each point. Defaults to None, meaning the previous value of y.

  • z (Iterable | None) – New z-locations of each point. Defaults to None, meaning the previous value of z.

Keyword Arguments:
  • pos (np.ndarray) – Shape (N, 3) (array) of floats specifying point locations. Can be used instead of x, y and z.

  • color (ColorsType) – Changes the color of the points. See ColorsType for allowed values.

  • size (int or list of int) – Array of floats specifying point size, or a single value to apply to all points.

  • pixel_mode (bool) – Whether to fix the size of each point. If True, size is specified in pixels. If False, size is specified in data coordinates. Defaults to True.