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.
1.1: This prevents garbage collection if the user does not store the figure in a variable. 1.2: It allows managing multiple figures to change the current figure. 1.3: It manages the figure ...