绘制折线

1 import matplotlib.pyplot as plt 
2 x = [1,2,3,4,5]
3 y = [1,4,9,16,25]
4 plt.plot(x,y)
5 plt.show()


 

 

 

posted @ 2020-04-06 15:03  小他_W  阅读(125)  评论(0编辑  收藏  举报