如何设置某条线的标签
2019-04-11 本文已影响0人
静水流深_6660
问题:设置某条线的label后,不显示标签。
解决方法:
plt.plot(x, y2, color="#800080", linewidth=2.0, linestyle="--", label="y2")
plt.legend(loc="upper left")
问题:设置某条线的label后,不显示标签。
解决方法:
plt.plot(x, y2, color="#800080", linewidth=2.0, linestyle="--", label="y2")
plt.legend(loc="upper left")