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.

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

Updated