tropea_clustering.plot_smooth.plot_one_trj_uni

tropea_clustering.plot_smooth.plot_one_trj_uni(title, example_id, input_data, labels)[source]

Plots the colored trajectory of one example particle.

Unclassified data points are colored with the darkest color.

Parameters:
  • title (pathlib.Path) – The path of the .png file the figure will be saved as.

  • example_id (int) – The ID of the selected particle.

  • input_data (ndarray of shape (n_particles, n_frames)) – The input data array.

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

Example

Here’s an example of the output:

Example Image

The datapoints are colored according to the cluster they have been assigned.