Plotting In 3D#
- squap.scatter_3D(
- x=None,
- y=None,
- z=None,
- pos=None,
- color='y',
- size=4,
- pixel_mode=True,
- **kwargs,
Creates a new scatter plot item. Use either
x,yandzorposto set the coordinates of the points.- Parameters:
x (
np.ndarray, optional) – New x-locations of each point. Defaults toNone, which means the data will be initialised withpos, or it will be initialised later.y (
np.ndarray, optional) – New y-locations of each point. Defaults toNone, which means the data will be initialised withpos, or it will be initialised later.z (
np.ndarray, optional) – New z-locations of each point. Defaults toNone, which means the data will be initialised withpos, or it will be initialised later.pos (
np.ndarray, optional) – Shape(N, 3)(array) of floats specifying point locations. Can be used instead ofx,yandz.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 is4.pixel_mode (bool) – Whether to fix the size of each point. If
True, size is specified in pixels. IfFalse, size is specified in data coordinates. Defaults toTrue.