fastplotlib.ScatterCollection#

class ScatterCollection(data, *, colors='w', cmap=None, cmap_transform=None, cmap_range=None, mode='markers', markers='o', custom_sdf=None, edge_colors='black', edge_width=1.0, image=None, point_rotations=0.0, sizes=5, size_space='screen', names=None, offsets=None, rotations=None, scales=None, alphas=None, alpha_modes=None, visibles=None, metadatas=None, name=None, offset=(0.0, 0.0, 0.0), rotation=(0.0, 0.0, 0.0, 1.0), scale=(1.0, 1.0, 1.0), alpha=1.0, alpha_mode='auto', visible=True, metadata=None)[source]#

Create a collection of graphics of the same type.

Parameters:
  • data (list of array-like) – one entry per graphic; its length is the number of graphics in the collection

  • **kwargs – any feature of the child graphic (colors, thickness, sizes, …), each accepting one value for all graphics or one value per graphic. A Graphic argument (name, offset, visible, …) sets it on the collection itself, its plural form (names, offsets, visibles, …) sets it per graphic. Any argument that is not a feature is passed unchanged to every child graphic.

Examples#

NDWidget Spike Raster

NDWidget Spike Raster