0x00 用matplotlib画线
import matplotlib.pyplot as plt
x = [1,2,3]
y = [4,8,3]
x2 = [4,5,6]
y2 = [8,6,7]
plt.plot(x,y,label='line1')
plt.plot(x2,y2,label='line2')
plt.xlabel('X')
plt.ylabel('Y')
plt.title('Line')
plt.legend()
plt.show()
import matplotlib.pyplot as plt
x = [1,2,3]
y = [4,8,3]
x2 = [4,5,6]
y2 = [8,6,7]
plt.plot(x,y,label='line1')
plt.plot(x2,y2,label='line2')
plt.xlabel('X')
plt.ylabel('Y')
plt.title('Line')
plt.legend()
plt.show()