From 35649392f56441b277e0c16e63f738dd3a5d2d97 Mon Sep 17 00:00:00 2001 From: Gabriele De Rosa Date: Wed, 13 Jan 2021 21:46:21 +0100 Subject: [PATCH] Bug fix Flush the plot --- bot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bot.py b/bot.py index 3e3c305..234d272 100644 --- a/bot.py +++ b/bot.py @@ -103,6 +103,8 @@ def download(): plot_filename = 'plot_' + sf + '.png' # Create plot image/png plt.savefig('out/' + plot_filename, dpi=300, bbox_inches='tight') + # Flush the plot + plt.clf() # Generate tmp webpage/html filename webpage_filename = 'tmp_' + sf + '.html' # Generate template