tropea_clustering.plot_smooth.plot_state_populations

tropea_clustering.plot_smooth.plot_state_populations(title, 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 (pathlib.Path) – The path of the .png file the figure will be saved as.

  • labels (ndarray of shape (n_particles, n_frames)) – The output of Onion Clustering.

Example

Here’s an example of the output:

Example Image