No handles with labels found to put in legend(完美解决!)
No handles with labels found to put in legend第一种:plt.scatter()没写label项第二种:plt.plot(),plt.figure()顺序错误今天用plt画图出现如题的报错,我们来分析一下原因。第一种:plt.scatter()没写label项plt.legend()就是为了展示标签,前面函数中没有定义,自然无法显示解决方法:plt.sc
·
更多推荐
已为社区贡献4条内容
所有评论(0)