Closed lsetiawan closed 5 years ago
Nevermind, problem is in the harvester side. Closing...
@lsetiawan I had similar issue sometime back with matplotlib, apparently plt.close() doesn't release memory properly. So I would suggest something like this which works:
plt.clf()
plt.close(fig)
Can that be in yodapy data_availibility function?
Seems like if I close the plot before return, I get nothing....
Makes sense, we cannot close it before the return, won't plt.clf()
clear the current plot? I think it should be session level clearance. Documentation says Clear the current figure.
, should we use this in the beginning of data_availability before even plotting anything to clear any residual figures?
Let's try that! Great idea :) Thanks!
Overview
Calling
data_availibility
multiple times creates new figures everytime, and they don't auto close, which is a problem. This PR should address this, by closing figure after creation.