add_scatterΒΆ
- Subplot.add_scatter(data, sizes=1, colors='w', alpha=1.0, cmap=None, cmap_values=None, z_position=0.0, *args, **kwargs)ΒΆ
Create a Scatter Graphic, 2d or 3d
- Parameters:
data (array-like) β Scatter data to plot, 2D must be of shape [n_points, 2], 3D must be of shape [n_points, 3]
sizes (float or iterable of float, optional, default 1.0) β size of the scatter points
colors (str, array, or iterable, default "w") β specify colors as a single human readable string, a single RGBA array, or an iterable of strings or RGBA arrays
cmap (str, optional) β apply a colormap to the scatter instead of assigning colors manually, this overrides any argument passed to βcolorsβ
cmap_values (1D array-like or list of numerical values, optional) β if provided, these values are used to map the colors from the cmap
alpha (float, optional, default 1.0) β alpha value for the colors
z_position (float, optional) β z-axis position for placing the graphic
args β passed to Graphic
kwargs β passed to Graphic
- Return type:
Features
- data:
ImageDataFeature
Manages the line [x, y, z] positions data buffer, allows regular and fancy indexing.
- colors:
ColorFeature
Manages the color buffer, allows regular and fancy indexing.
- cmap:
CmapFeature
Manages the cmap, wraps
ColorFeature
to add additional functionality relevant to cmaps.- present:
PresentFeature
Control the presence of the Graphic in the scene, set to
True
orFalse