tropea_clustering.plot.plot_sankey¶
- tropea_clustering.plot.plot_sankey(title, labels, n_windows, tmp_frame_list)[source]¶
Plots the Sankey diagram at the desired frames.
Here’s an example of the output:
For each of the selected frames, the colored bars width is proportional to each cluster population. The gray bands’ witdh are proportional to the number of data points moving from one cluster to the other between the selected frames. “State -1” refers to the unclassified data.
- Parameters:
Notes
If there are no assigned window, we still need the “-1” state for consistency
Requires kaleido.