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,
Sets the data of the scatter plot item after it has been created. Use either
x,yandzorposto set the coordinates of the points.- Parameters:
x (
Iterable|None) – New x-locations of each point. Defaults toNone, meaning the previous value ofx.y (
Iterable|None) – New y-locations of each point. Defaults toNone, meaning the previous value ofy.z (
Iterable|None) – New z-locations of each point. Defaults toNone, meaning the previous value ofz.
- Keyword Arguments:
pos (
np.ndarray) – 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) – 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. IfFalse, size is specified in data coordinates. Defaults toTrue.