In matplotlib.pyplot how do I delete the figure completely?
I have tried plt.close('all')
and plt.close(fig)
where fig
if the figure object returned by plt.figure()
, but the interpreter still complains that the figures are opened.
I can't ignore the warning since my script needs to generate hundreds of complex figures.