import matplotlib.pyplot as plt
plt.rcParams['font.sans-serif'] = ['SimHei'] # 正常显示中文标签
plt.rcParams['axes.unicode_minus'] = False # 用来正常显示负号
plt.title('预测苯酚在2017年价格走势,红色真实,绿色预测值')
plt.xlabel('日期')
plt.ylabel('苯酚价格')
plt.scatter(dates, real_y, color='red',label='x1 真实值')
# for real_date_y in zip_longest(dates,real_y):
# plt.annotate('(真实值,%s)'%real_date_y[1],xy=real_date_y,xytext=(-20,10),textcoords='offset points')
plt.scatter(dates, cal_y, color='green',label='x2 预测值')
plt.legend(loc='upper right')
plt.show()