Python puts out a memory error after drawing a few graphs with pyplot (I draw plots with over a million points on a laptop - and how many graphs can be drawn before the error has direct relationship with the amount of points).
How can the memory be cleared after, so that I can draw more graphs? The only option now is to ctrl + . to restart the kernel.
I have tried the recommended:
matplotlib.pyplot.close("all")
matplotlib.pyplot.clf()
Doesn't clear the errors.