plot_series_with_change_points

plot_series_with_change_points(y, change_points, title=None, font_size=16)[source]

Plot the time series with the known change points.

Parameters:
y: array-like, shape = [n]

the univariate time series of length n to be annotated

change_points: array-like, dtype=int

the known change points these are highlighted in the time series as vertical lines

title: str, default=None

the name of the time series (dataset) to be annotated

font_size: int, default=16

for plotting

Returns:
figmatplotlib.figure.Figure
axplt.Axis