我正在尝试使用subplot2grid在matplotlib中创建一个具有不同行和列跨度的子图的单个图形. 例如,以下代码:import matplotlib.pyplot as plt import numpy as nfig = plt.figure() ax1 = plt.subplot2grid((2, 5), (0, 0), rowspan=2, colspan=2) ax2 = plt.subplot2grid((2, 5), (0, 2)) ax2_2 = plt.subplot2grid((2, 5), (0, 3)) ax2_3 = plt.subplot2grid((2, 5), (0, 4)) ax3 = plt.subplot2grid((2, 5), (1, 2), colspan=3) #...