Skip to content

Latest commit

 

History

History
7 lines (3 loc) · 195 Bytes

File metadata and controls

7 lines (3 loc) · 195 Bytes

Closing Matplotlib figures

Back

To close a figure in matplotlib use plt.close(fig) or plt.close('all'). In jupyter keeping the figure alive will consume memory