

def plot(self):
    from statsmodels.graphics.utils import _import_mpl
    plt = _import_mpl()
    (fig, axes) = plt.subplots(4, 1, sharex=True)
    if hasattr(self.observed, 'plot'):
        self.observed.plot(ax=axes[0], legend=False)
        axes[0].set_ylabel('Observed')
        self.trend.plot(ax=fig[1], legend=False)
        axes[1].set_ylabel('Trend')
        self.seasonal.plot(ax=axes[2], legend=False)
        axes[2].set_ylabel('Seasonal')
        self.resid.plot(ax=axes[3], legend=False)
        axes[3].set_ylabel('Residual')
    else:
        axes[0].plot(self.observed)
        axes[0].set_ylabel('Observed')
        axes[1].plot(self.trend)
        axes[1].set_ylabel('Trend')
        axes[2].plot(self.seasonal)
        axes[2].set_ylabel('Seasonal')
        axes[3].plot(self.resid)
        axes[3].set_ylabel('Residual')
        axes[3].set_xlabel('Time')
        axes[3].set_xlim(0, self.nobs)
    fig.tight_layout()
    return fig

dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/tsa/seasonal.py DecomposeResult.plot/VarMisuse@92/108 `axes`->`fig`