基础了解(三)
学习matplotlib
1、简单绘图
import matplotlib.pyplot as plt
a = [1, 2, 3]
b = [4, 5, 6]
plt.plot(a, b)
plt.show()2、多条线同图
import matplotlib.pyplot as plt
a = [1, 2, 3]
b = [4, 5, 6]
c = [4, 8, 3]
plt.plot(a, b)
plt.plot(a, c)
plt.show()test-test
Last updated
Was this helpful?