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:
seriespd.Series or iterable of pd.Series

One or more time series.

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.

pred_intervalpd.DataFrame, default = None

Output of forecaster.predict_interval(). 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()
>>> fig, ax = plot_series(y)