In Python, what is the difference between plt.clf() and plt.close()?
plt.clf()
plt.close()
Will they function the same way?
plt.clf() clears the entire current figure with all its axes, but leaves the window opened, such that it may be reused for other plots.
plt.close() closes a window, which will be the current window, if not specified otherwise.