I am creating these timeseries plots specifically stl decomposition and already managed to get all the plots into one. The issue I am having is having them shown side by side like the solution [here][1]. I tried the solution on the link but it did not work, instead I kept getting an empty plot on the top. I have four time series plots and managed to get them outputted on the bottom of each other however I would like to have them side by side or two side by side and the last two on the bottom side by side.
Then for the dates on the xaxis, I have already tried using ax.xaxis.set_major_formatter(DateFormatter('%b %Y'))
but it is not working on the code below since the res.plot function won't allow it.
I have already searched everywhere but I can't find the solution to my issue. I would appreciate any help.
Here is an example using artificial data. The main idea is to group the outputs in to
DataFrame
s and then to plot these using the pandasplot
function.Note that I had to change your code to use
stl2
,stl3
andstl4
when fitting.This produces: