# Agg Backend

*noun*

say it: **“AG BAK-end”** **/ˈæɡ ˈbækˌɛnd/**

The part of matplotlib that draws charts into memory without opening a window.

## What is matplotlib's **Agg backend**?

The **Agg backend** is the part of matplotlib that draws charts in memory, into a picture, with no window. Tests that
draw charts choose it so they run anywhere, even on a computer with no screen, such as the one that checks a GitHub
repository.

```python
import matplotlib
matplotlib.use("Agg")   # draw in memory: no window opens
```

## In a sentence

- “On the build server, only the **Agg backend** could draw the charts.”
- “The tests use the **Agg backend**, so no windows pop up.”

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

Updated: November 19, 2026

Source: https://www.ask-codey.com/glossary/agg-backend
