tropea_clustering.plot.plot_one_trj_uni

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

Plots the colored trajectory of one example particle.

Unclassified data points are colored with the darkest color.

Parameters:
  • title (str) – 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_seq, delta_t)) – The input data array.

  • n_particles (int) – The number of particles in the original dataset.

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

  • been (The datapoints are colored according to the cluster they have)

  • assigned.