So far, we have shown you bits and pieces of two of Matplotlib's topmost abstraction layers:
pyplot. The layer below them is the object-oriented layer (the OO layer). To develop any type of application, you will want to use this layer. Mixing the
pyplot layers with the OO layer will lead to very confusing behaviors when dealing with multiple plots and figures.
Below the OO layer is the backend interface. Everything above this interface level in Matplotlib is completely platform-agnostic. It will work the same regardless of whether it is in an interactive GUI or comes from a driver script running on a headless server. The backend interface abstracts away all those considerations so that you can focus on what ...