Python之画图matplotlib(1)
好网站:http://liao.cpython.org/
导入库:import matplotlib.pyplot as plt
标题:plt.title("this is your title")
曲线:plt.plot(x, y, label = "this is the label of this curve")
一个plot里可以有多条曲线:plt.plot(x2, y2, label = "this is the label of this curve(another one)")
设置x,y轴范围:plt.xlim(low, high); plt.ylin(low, high)
画图:plt.show()
浙公网安备 33010602011771号