之前用以下代码将实验结果用matplotlib show出来
plt.plot(np.arange(len(aver_reward_list)), aver_reward_list) plt.ylabel('Average Reward') plt.xlabel('Episode')
plt.tight_layout()
plt.savefig("AverageReward.eps")
plt.show()
画出的图都没什么问题,但忽然有一次数据量比较大,matplotlib开始报错,并且画出的图出现以下问题:
报错:
D:\softwares\coding\Python\Python3.6\lib\site-packages\matplotlib\figure.py:2359: UserWarning: This figure includes Axes that are not compatible with tight_layout, so results might be incorrect. warnings.warn("This figure includes Axes that are not compatible "