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.