idtrackerai.extra_tools.cluster_inspection#

Warning

The code reference is a work in progress and may contain inconsistencies.

A simple module to inspect contrastive clusters after tracking, see Cluster inspection.

idtrackerai.extra_tools.cluster_inspection.scatter_plot(x: ndarray, y: ndarray, labels: ndarray, file: Path | str)[source]#

Save a scatter plot colored by labels, which are expected to be identities from 1 to n_animals, with 0 meaning unknown (drawn in white).