使用Matplotlib畫圖系列(一)

1 import matplotlib.pyplot as plt 2 3 y=pp.DS.Transac_open # 設置y軸數據,以數組形式提供 4 5 x=len(y) # 設置x軸,以y軸數組長度爲寬度 6 x=range(x) # 以0開始的遞增序列作爲x軸數據 7 8 plt.plot(x,y) # 只提供x軸,y軸參數,畫最簡單圖形   圖
相關文章
相關標籤/搜索