etna.analysis.plot_trend#
- plot_trend(ts: TSDataset, trend_transform: ChangePointsTrendTransform | LinearTrendTransform | TheilSenTrendTransform | STLTransform | List[ChangePointsTrendTransform | LinearTrendTransform | TheilSenTrendTransform | STLTransform], segments: List[str] | None = None, columns_num: int = 2, figsize: Tuple[int, int] = (10, 5))[source]#
Plot series and trend from trend transform for this series.
If only unique transform classes are used then show their short names (without parameters). Otherwise show their full repr as label
- Parameters:
ts (TSDataset) – dataframe of timeseries that was used for trend plot
trend_transform (ChangePointsTrendTransform | LinearTrendTransform | TheilSenTrendTransform | STLTransform | List[ChangePointsTrendTransform | LinearTrendTransform | TheilSenTrendTransform | STLTransform]) – trend transform or list of trend transforms to apply
columns_num (int) – number of columns in subplots
figsize (Tuple[int, int]) – size of the figure per subplot with one segment in inches