diff --git a/scripts/plot_proftrace.py b/scripts/plot_proftrace.py index a601500..cc981e0 100644 --- a/scripts/plot_proftrace.py +++ b/scripts/plot_proftrace.py @@ -1074,12 +1074,14 @@ def plot_cpen_traces(penList, countList, nameList, dateList, plt.ioff() fig_prof.savefig(errProName, bbox_inches='tight', facecolor='w') + plt.close() if penProName is not None: fig_prof = plot_cpen_profiles(cpen_profs, nobs_profs, name_list, levl_profs) plt.ioff() fig_prof.savefig(penProName, bbox_inches='tight', facecolor='w') + plt.close() # # Generate trace plots # @@ -1090,6 +1092,7 @@ def plot_cpen_traces(penList, countList, nameList, dateList, plt.ioff() fig_trace.savefig(errTraName, bbox_inches='tight', facecolor='w') + plt.close() if penTraName is not None: fig_trace = plot_cpen_traces(cpen_trace, nobs_trace, name_list, date_trace, @@ -1097,6 +1100,7 @@ def plot_cpen_traces(penList, countList, nameList, dateList, plt.ioff() fig_trace.savefig(penTraName, bbox_inches='tight', facecolor='w') + plt.close() ############################################################## else: print('No Figure Cards Found, Exiting...')