添加图例方法,使用plt.legend()方法 ... label='data1', color='r') plt.plot(data2, label='data2', c='b') plt.legend() plt.show().
確定! 回上一頁