Closed edbennett closed 5 months ago
I should have solved this one.
In a pull request or on the main branch?
Main branch.
plt.show(); plt.clf()
is also redundant
Sorry for not being explicit—in this context you want the .show()
since otherwise the figure will be discarded without ever being seen. The .show()
also discards the figure once it's done, so the clf()
can be removed.
Closing a figure destroys it and everything in it; you don't need to call
plt.clf()
beforehand to clear it.