import matplotlib.pyplot as plt
fig = plt.figure()
gs = fig.add_gridspec(2,4)
ax1 = fig.add_subplot(gs[0, 0:2])
ax2 = fig.add_subplot(gs[0, 2:])
axa = fig.add_subplot(gs[1, 1])
axb= fig.add_subplot(gs[1, 2])
axc = fig.add_subplot(gs[1, 3])
axd = fig.add_subplot(gs[1, 0])
plt.show()
matplotlib多子图
于 2023-12-04 16:31:45 首次发布