Last Updated: May 22, 2026
Matplotlib is the foundation of Python plotting. It's the library that NumPy and pandas talk to on a .plot() call, and the one that seaborn, pandas, and most data-science notebooks ultimately render through. It has two APIs (one inherited from MATLAB, one object-oriented), a handful of core chart types, and many customization options. This lesson covers the object-oriented model, the basic plot types, the common customizations, multi-panel layouts, saving figures, integration with pandas, and when to use a different library.