closing plt to no accumulate memory over time

This commit is contained in:
simon 2021-03-21 12:32:39 +07:00
parent 360ff9422e
commit 4d9b2ddd2f
1 changed files with 1 additions and 0 deletions

View File

@ -197,6 +197,7 @@ def write_plt(x, y, plt_title, x_ticks, file_name, y_max=''):
plt.tight_layout()
plt.savefig(f'dyn/{file_name}.png', dpi = 300)
plt.figure()
plt.close('all')
def write_last7_plt(x, y_1, y_2, x_ticks, plt_title):