Matplotlib is a Python 2D plotting library that produces publication-quality figures in both hardcopy and interactive environments across platforms. It provides both object-oriented and MATLAB-style state machine interfaces. Matplotlib can be used to create simple plots with just a few commands or customize plots extensively by manipulating the object properties of figures, axes, and artists.