python---繪圖模塊matplotlib.pyplot

plot()中的兩個參數對應着X,Y座標。 代碼如下: import matplotlib.pyplot as plt; import numpy as np; plt.plot([1,6,3],[4,5,6]) plt.plot([1,6,3],[4,5,6]) plt.show()#show()方法,把繪製好的圖放在輸出。 設置在jupyter中matplotlib的顯示情況 1.%matpl
相關文章
相關標籤/搜索