SPARC-FAIR-Codeathon / oSPARC-VNS

o²S²PARC: Reusable Models of Visceral Nerve Stimulation
1 stars 1 forks source link

matplotlib memory leak #24

Closed ceiber-uom closed 3 years ago

ceiber-uom commented 3 years ago

in\Documents\MATLAB\Keast-lab\oSPARC-VNS\frontend\app\graphics.py:71: RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (matplotlib.pyplot.figure) are retained until explicitly closed and may consume too much memory. (To control this warning, see the rcParam figure.max_open_warning). fig, ax = plt.subplots() # a figure with a single Axes

ceiber-uom commented 3 years ago

I think I fixed this by calling mpl.make_subplots() with a fig=number argument