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.
We had a quick introduction to plotting with matplotlib in previous lessons. This lesson covers plotting with Python and matplotlib using a more structured approach. In this section, we'll look into ...