plt.clf() solved all my problems. I simply did not notice this simple solution. Whenever I saw "memory leak" there was given the advice to upgrade older versions.
Thanks a lot, Foehn Am 2014-03-30 13:55, schrieb Remo Goetschi: > Hi Föhn, > > By default, the pyplot interface (recall that it is a Matlab-like state > machine) does not release a figure's memory. You need to do this by hand > by calling the clf() method after every plot you make: > ... > plt.close() > plt.clf() > > Stackoverflow contains a few threads about the subject. > > Best, > Remo > > ------------------------------------------------------------------------------ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users