quantopian / alphalens

Performance analysis of predictive (alpha) stock factors
http://quantopian.github.io/alphalens
Apache License 2.0
3.33k stars 1.14k forks source link

BUG: Figures are not closed causing memory leak #241

Closed luca-s closed 6 years ago

luca-s commented 6 years ago

From matplotlib documentation:

The memory required for a Figure is not completely released until the figure is explicitly closed with close(). Deleting all references to the figure, and/or using the window manager to kill the window in which the figure appears on the screen, is not enough, because pyplot maintains internal references until close() is called.