tropea_clustering.plot.plot_state_populations¶
- tropea_clustering.plot.plot_state_populations(title, n_particles, delta_t, labels)[source]¶
Plot the populations of clusters over time.
For each trajectory frame, plots the fraction of the population of each cluster. In the legend, “ENV0” refers to the unclassified data.
- Parameters:
title (str) – The path of the .png file the figure will be saved as.
n_particles (int) – The number of particles in the original dataset.
delta_t (int) – The legth of the signal sequences (the analysis time resolution).
labels (ndarray of shape (n_particles * n_seq,)) – The output of Onion Clustering.