plot_series

plot_series(series, labels=None, markers=None, colors=None, title=None, x_label=None, y_label=None, ax=None, pred_interval=None)[source]

Plot one or more time series.

Parameters:
seriesnp.ndarray, pd.Series or pd.DataFrame

One or more time series stored in (n_channels, n_timepoints) format.

labelslist, default = None

Names of series, will be displayed in figure legend.

markerslist, default = None

Markers of data points, if None the marker “o” is used by default. The length of the list has to match with the number of series.

colorslist, default = None

The colors to use for plotting each series. Must contain one color per series

titlestr, default = None

The text to use as the figure’s suptitle.

x_labelstr or None, default = None

String label to put on the x-axis.

y_labelstr or None, default = None

String label to put on the -axis.

axplt.Axis or None

Axis to plot on. If None, a new figure is created.

pred_intervalpd.DataFrame, default = None

Contains columns for lower and upper boundaries of confidence interval.

Returns:
figplt.Figure
axplt.Axis

Examples

>>> from aeon.visualisation import plot_series
>>> from aeon.datasets import load_airline
>>> y = load_airline(return_array=False)
>>> fig, ax = plot_series(y)