plot_collection_by_class

plot_collection_by_class(X, y)[source]

Plot a collection of time series, grouped by class.

Each class is plotted in a separate subplot with a single legend entry for the class label. Can accept any aeon collection format.

Parameters:
Xarray-like of shape (n_samples, 1, n_features)

The collection of time series to plot.

yarray-like of shape (n_samples,)

The class labels for each time series.

Returns:
figmatplotlib.figure.Figure
axesnp.ndarray

Array of the figure’s Axe objects