python画标签

plt.plot(w2,train2[0,:],label='A')
plt.plot(w2,train2[1,:],label='B')
plt.plot(w2,train2[2,:],label='C')
plt.legend()
plt.show()
label表示你想用的标记名称。
plt.legend()用于显示。
posted @ 2021-09-17 07:53  祥瑞哈哈哈  阅读(92)  评论(0)    收藏  举报