stl_plot¶
- stl_plot(ts: TSDataset, period: int, 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
period (int) – length of seasonality
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 usedstl_kwargs (Optional[Dict[str, Any]]) – dictionary with parameters for STL decomposition,
statsmodels.tsa.seasonal.STL
is used