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
- markers: list, 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.
- colors: list, default = None
The colors to use for plotting each series. Must contain one color per series
- title: str, default = None
The text to use as the figure’s suptitle
- pred_interval: pd.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.utils.plotting import plot_series >>> from aeon.datasets import load_airline >>> y = load_airline() >>> fig, ax = plot_series(y)