Matplotlib: 3 plots plotted in 2 rows with single image centered
问题 I have a 3 figure plot. I would like to have two rows of images with 2 plots on the top row, and 1 on the bottom. I need to center align the single plot on the second row. fig, ax = plt.subplots(nrows=2, ncols=2) x = np.arange(0.01,1.01,0.01) y = np.arange(0.01,1.01,0.01) X,Y = np.meshgrid(x, y) # grid of point Z = 1/((1/X)+(1/Y)-1) F = Y / X values = [0.3, 0.5, 0.8, 1.0, 1.3, 1.5, 2.0, 3.0, 5.0, 10.0] #Plot 0 ax[0,0].set_aspect('equal') CS = ax[0,0].contour(X,Y,Z,np.arange(0.1,1.0,0.1)