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