I preferred the answer of tacaswell in the comments, but had to search for it.
Clean up your plots after you are done with them:
plt.close(fig)
or
plt.close('all')
I preferred the answer of tacaswell in the comments, but had to search for it.
Clean up your plots after you are done with them:
plt.close(fig)
or
plt.close('all')