publiplots.close_all

publiplots.close_all()[source]

Close all open figures.

Thin wrapper around matplotlib.pyplot.close('all'). Useful when building many figures in a loop to release their pyplot-held references for garbage collection.

Examples

>>> import publiplots as pp
>>> pp.close_all()