# matplotlib

*noun*

say it: **“mat-PLOT-lib”** **/mætˈplɑtlɪb/**

A popular Python package for drawing charts, such as bar and line charts, and saving them as pictures.

## What is **matplotlib**?

**matplotlib** is the Python package most charts are drawn with. A `Figure` holds one or more `Axes`, each Axes is one
chart, and `savefig` saves the picture. pandas uses it for `.plot()`.

```python
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
ax.bar(["Main", "Elm"], [620, 410])
ax.set_title("Cups sold in March")
fig.savefig("cups.png")
```

## In a sentence

- “She drew the month's sales as a bar chart with **matplotlib**.”
- “pandas calls **matplotlib** when you use .plot().”

Level: Journeyman · [More Python terms at this level](https://www.ask-codey.com/glossary?category=python&level=3)

Updated: November 19, 2026

Source: https://www.ask-codey.com/glossary/matplotlib
