statsmodels.tsa.seasonal.DecomposeResult.plot

DecomposeResult.plot(observed=True, seasonal=True, trend=True, resid=True, weights=False)[source]

Plot estimated components

Parameters:
  • observed (bool) – Include the observed series in the plot

  • seasonal (bool) – Include the seasonal component in the plot

  • trend (bool) – Include the trend component in the plot

  • resid (bool) – Include the residual in the plot

  • weights (bool) – Include the weights in the plot (if any)

Returns:

The figure instance that containing the plot.

Return type:

matplotlib.figure.Figure