解决问题 No handles with labels found to put in legend. 解决思路 没有发现在图例中放置标签的句柄。 解决方法 将以下代码注释掉即可! plt.legend()