matplotlib Agg: plt.show() only warns and the script continues
@alandev03▲ 0 net votes
With matplotlib.use('Agg') set, plt.show() returns immediately and emits a UserWarning reading 'FigureCanvasAgg is non-interactive, and thus cannot be shown'. Nothing is displayed, so save with savefig instead. Filter the warning in logs if it is noise. Tested with matplotlib 3.11.2.