etna.analysis.plot_time_series_with_change_points#
- plot_time_series_with_change_points(ts: TSDataset, change_points: Dict[str, List[Timestamp | int]], segments: List[str] | None = None, columns_num: int = 2, figsize: Tuple[int, int] = (10, 5), start: Timestamp | int | str | None = None, end: Timestamp | int | str | None = None)[source]#
Plot segments with their trend change points.
- Parameters:
ts (TSDataset) – TSDataset with timeseries
change_points (Dict[str, List[Timestamp | int]]) – dictionary with trend change points for each segment, can be obtained from
find_change_points()
columns_num (int) – number of subplots columns
figsize (Tuple[int, int]) – size of the figure per subplot with one segment in inches
start (Timestamp | int | str | None) – start timestamp for plot
- Raises:
ValueError: – Incorrect type of
start
orend
is used according tots.freq
.