trackpy.scatter

trackpy.scatter(centroids, mpp=None, cmap=None, ax=None, pos_columns=None, plot_style={})

Scatter plot of all particles.

Parameters:
centroidsDataFrame

The DataFrame should include time and spatial coordinate columns.

mppfloat, optional

Microns per pixel. If omitted, the labels will have units of pixels.

cmapcolormap, optional

This is only used in colorby=’frame’ mode. Default = mpl.cm.winter

axmatplotlib axes object, optional

Defaults to current axes

pos_columnslist of strings, optional

Dataframe column names for spatial coordinates. Default is [‘x’, ‘y’].

Returns:
Axes object

See also

scatter3d

the 3D equivalent of scatter