From 9235f5019c4162b9c85c8213afc9c3f809c00c06 Mon Sep 17 00:00:00 2001 From: LWR Date: Fri, 3 Feb 2023 00:38:29 +0800 Subject: [PATCH] fix: Fixed figure not closed in live report --- starbot/painter/LiveReportGenerator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/starbot/painter/LiveReportGenerator.py b/starbot/painter/LiveReportGenerator.py index 0bfde3a..f785c71 100644 --- a/starbot/painter/LiveReportGenerator.py +++ b/starbot/painter/LiveReportGenerator.py @@ -629,6 +629,7 @@ class LiveReportGenerator: buf = io.BytesIO() fig.savefig(buf) + plt.close(fig) buf.seek(0) return Image.open(buf)