问题:设置某条线的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")