See pyplot.figure, pyplot.subplots, and pyplot.subplot_mosaic to create figures, and Axes API for the plotting methods on an Axes: 对于复杂的绘图, 建议使用显式的面向对象的 API, 尽管 pyplot 通常仍用于创建图形, 并且通常用于创建图形中的 Axes.
subplot adjust wspace = 0.2 plt.subplots_adjust(right = 2 ) plt.subplots_adjust(wspace = 0.5 ) https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.pyplot.subplots ...