I am using statsmodels.api.tsa.seasonal_decompose
to do some seasonal analysis of a time series.
I set it up using
decomp_viz = sm.tsa.seasonal_decompose(df_ts['NetConsumption'], period=48*180)
and then try and visualise it using
decomp_viz.plot()
The output was tiny so I tried to use the standard matplotlib command of
decomp_viz.plot(figsize=(20,20))
However, this got the warning:
TypeError: plot() got an unexpected keyword argument 'figsize'
The documentation says that a matplotlib.figure.Figure
is returned from DecomposeResult.plot
so I am unsure as to why this error is happening.
My version of statsmodels
is 0.13.1
and I am aware that the documentation is for 0.14.0
, but conda says that that version does not exist and that I cannot update to it.
Any thoughts would be appreciated.