Matplotlib Figure and Axes Model
Matplotlib composes a Figure containing one or more Axes, each owning its coordinate system, artists, and scales; the object-oriented API (fig, ax = plt.subplots()) is the maintainable path, with pyplot's implicit state a thin wrapper over it. Higher-level libraries like seaborn and pandas .plot render onto these same Axes objects.
This Concept is waiting for its first lesson!
Matplotlib composes a Figure containing one or more Axes, each owning its coordinate system, artists, and scales; the object-oriented API (fig, ax = plt.subplots()) is the maintainable path, with pyplot's implicit state a thin wrapper over it. Higher-level libraries like seaborn and pandas .plot render onto these same Axes objects.
Are you a teacher? Sign in to start contributing.
Sign In