Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Python
pred_uc1 = results.get_forecast(steps=30)
pred_ci = pred_uc1.conf_int()
axes = y.plot(label='A321 Observed', figsize=(14, 7))
pred_uc1.predicted_mean.plot(ax=axes, label='A321 Forecast')

pred_uc2 = results.get_forecast(steps=30)
pred_ci = pred_uc2.conf_int()
ax = y.plot(label='A320 Observed', figsize=(14, 7))
pred_uc2.predicted_mean.plot(ax=ax, label='A320 Forecast')
ax.fill_between(pred_ci.index,
                pred_ci.iloc[:, 0],
                pred_ci.iloc[:, 1], color='k', alpha=.25)
ax.set_xlabel('Date')
ax.set_ylabel('Down Days')
plt.legend()
plt.show()


What I have tried:

I've tried the above code and it gives me just one trend line when it should be plotting two trendiness, one for each aircraft
Posted
Updated 20-Apr-19 11:23am

1 solution

Screen-Shot-2019-04-20-at-5-08-16-PM — imgbb.com[^]



The plot above shows one trend line plotted but it should be two trend lines, one for each aircraft
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900