您可以在使用suplot2grid而不是subplot时使用colspan。
import matplotlib.pyplot as plt
ax1 = plt.subplot2grid(shape=(2,6), loc=(0,0), colspan=2)
ax2 = plt.subplot2grid((2,6), (0,2), colspan=2)
ax3 = plt.subplot2grid((2,6), (0,4), colspan=2)
ax4 = plt.subplot2grid((2,6), (1,1), colspan=2)
ax5 = plt.subplot2grid((2,6), (1,3), colspan=2)
然后,每个子图都需要2个cols宽,以便第二行中的子图可以移动1列。