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()

posted @ 2021-04-10 01:28  Taskii  阅读(48)  评论(0)    收藏  举报