The residual plot is not displaying properly in my plot. I cannot understand what can the issue be. Please need help withenter image description here this. There is some issue with the axis. I am pulling Data of COVID 19 and I am plotting first-order data (made stationary set). I have removed all nan values.
format of data is date value_diff 268 2020-10-16 745.0 269 2020-10-17 428.0 270 2020-10-18 465.0
ecomposition = seasonal_decompose(data_set_3, model='additive', period=7)
trend = decomposition.trend
seasonal = decomposition.seasonal
residual = decomposition.resid
plt.subplot(411)
plt.plot(data_set_3, label='Original')
plt.legend(loc='best')
plt.subplot(412)
plt.plot(trend, label='Trend')
plt.legend(loc='best')
plt.subplot(413)
plt.plot(seasonal, label='Seasonality')
plt.legend(loc='best')
plt.subplot(414)
plt.plot(residual, label='Residuals')
plt.legend(loc='best')
plt.tight_layout()