Plotting In 3D#

squap.scatter_3D(
x=None,
y=None,
z=None,
pos=None,
color='y',
size=4,
pixel_mode=True,
**kwargs,
)[source]#

Creates a new scatter plot item. Use either x, y and z or pos to set the coordinates of the points.

Parameters:
  • x (np.ndarray, optional) – New x-locations of each point. Defaults to None, which means the data will be initialised with pos, or it will be initialised later.

  • y (np.ndarray, optional) – New y-locations of each point. Defaults to None, which means the data will be initialised with pos, or it will be initialised later.

  • z (np.ndarray, optional) – New z-locations of each point. Defaults to None, which means the data will be initialised with pos, or it will be initialised later.

  • pos (np.ndarray, optional) – 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) – The size of the scatter plot points. Also accepted as s. Default is 4.

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