pyiem.plot.use_agg module#

A utility to load matplotlib and set the backend to AGG.

pyiem.plot.use_agg.figure(**kwargs)[source]#

Create a new figure using matplotlib’s OO API.

Parameters:

**kwargs – Arguments to pass to Figure constructor

Returns:

The created figure

Return type:

matplotlib.figure.Figure