equinor / flownet

FlowNet - Data-Driven Reservoir Predictions
GNU General Public License v3.0
63 stars 29 forks source link

Matplotlib warning in util/plot_results function #373

Closed edubarrosTNO closed 3 years ago

edubarrosTNO commented 3 years ago

When using the flownet_plot_results util script for a large number of plots, a matplotlib warning is triggered because figures remain open and may consume too much memory. We should make sure that the figures are closed after they are saved, i.e. plt.close()