When I plot with facebook prophet model by the following code:
number_of_days_in_future = 20
future = m.make_future_dataframe(periods=number_of_days_in_future, freq="D")
weekend = future[future['ds'].dt.dayofweek < 5 ]
prediction = m.predict(weekend)
m.plot(prediction)
plt.title("Prediction of Value")
plt.xlabel("Date")
plt.ylabel("Value")
plt.show()
It shows plotting from the beginning of historical data like below:
It's difficult to understand the value from the graph as it spans large range for Y-axis.
But if I forecast only for few days. It's easier to understand the value from Y-axis like this:
My questions are:
- Is there any way so that it doesn't span that large range? ( if we can ignore plotting the shadow part )
- Is there any way just to plot the tail forecasted part? ( I don't want to plot whole historical data )