Guide146.6K views4,576 votes0 replies853 following
Choosing Matplotlib's Agg Backend for Headless Figure Generation
When generating Matplotlib figures on headless servers, the backend choice silently controls rendering success. This article explains how to set the Agg backend, configure DPI, and avoid common failure modes.
server-side-figuresheadless-plotting
matplotlibTasadduq Burneyowner35.8K rep · 13 Sept 2025, 07:08 UTC