分享

成功解决No handles with labels found to put in legend.

 处女座的程序猿 2021-09-28

解决问题

No handles with labels found to put in legend.

解决思路

matplotlib.pyplot .plot 时,没有设置参数label="xx"

解决方法

import matplotlib.pyplot as plt
plt.plot(x, y label='上海')

大功告成!

    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约