Added closing plots after saving to file

Signed-off-by: Grzegorz Latosinski <glatosinski@antmicro.com>
This commit is contained in:
Grzegorz Latosinski 2020-11-12 10:12:23 +01:00
parent 5ea3ea9487
commit 414b809a3f
1 changed files with 1 additions and 0 deletions

View File

@ -128,6 +128,7 @@ def generate_fet_plots(
fg.tight_layout()
fg.savefig(Path(outdir) / (outprefix + f'_{name}.{ext}'))
f.close()
plt.close('all')
if __name__ == '__main__':