使用matplotlib繪製多個圖形單獨顯示

一 代碼數組 import numpy as np import matplotlib.pyplot as plt #建立自變量數組 x= np.linspace(0,2*np.pi,500) #建立函數值數組 y1 = np.sin(x) y2 = np.cos(x) y3 = np.sin(x*x) #建立圖形 plt.figure(1) ''' 意思是在一個2行2列共4個子圖的圖中,定位第1
相關文章
相關標籤/搜索