stl_plot

stl_plot(ts: TSDataset, in_column: str = 'target', period: Optional[int] = None, segments: Optional[List[str]] = None, columns_num: int = 2, figsize: Tuple[int, int] = (10, 10), plot_kwargs: Optional[Dict[str, Any]] = None, stl_kwargs: Optional[Dict[str, Any]] = None)[source]

Plot STL decomposition for segments.

Parameters
  • ts (TSDataset) – dataset with timeseries data

  • segments (Optional[List[str]]) – segments to plot

  • columns_num (int) – number of columns in subplots

  • figsize (Tuple[int, int]) – size of the figure per subplot with one segment in inches

  • plot_kwargs (Optional[Dict[str, Any]]) – dictionary with parameters for plotting, matplotlib.axes.Axes.plot() is used

  • stl_kwargs (Optional[Dict[str, Any]]) – dictionary with parameters for STL decomposition, statsmodels.tsa.seasonal.STL is used

  • in_column (str) –

  • period (Optional[int]) –