- 绘制曲线
import matplotlib.pyplot as plt
x = [2, 3, 4]
y = [1, 2, 3]
plt.plot(x, y, label ='you label', "go") # go
plt.legend()
plt.title('title')
plt.set_xlabel('x')
plt.set_ylabel('y')
plt.show()
# plt.savefig('debug.png')
import matplotlib.pyplot as plt
x = [2, 3, 4]
y = [1, 2, 3]
plt.plot(x, y, label ='you label', "go") # go
plt.legend()
plt.title('title')
plt.set_xlabel('x')
plt.set_ylabel('y')
plt.show()
# plt.savefig('debug.png')