使用subplots()函数,一次性返回所有子图给你 x = np.linspace(0, 2*np.pi) #3行3列 fig, ax = plt.subplots(3,3) ax1, ax2, ax3 = ax #ax是3行3列的数组,用ax1,ax2,ax3分别接收第一行,第二行,第三行 ax11,ax12,ax13 = ax1 #接收第一行的第一个,第二个,第三个 ax21,ax22,ax23 = ax2 ax31,ax32,ax33 = ax3 #fig设置画布大小 fig.set_figwidth(8) fig.set_figheight(5) #第一行 ax11.plot(x,n...