Flush the plot
This commit is contained in:
Gabriele De Rosa 2021-01-13 21:46:21 +01:00
parent 7557533395
commit 35649392f5
1 changed files with 2 additions and 0 deletions

2
bot.py
View File

@ -103,6 +103,8 @@ def download():
plot_filename = 'plot_' + sf + '.png' plot_filename = 'plot_' + sf + '.png'
# Create plot image/png # Create plot image/png
plt.savefig('out/' + plot_filename, dpi=300, bbox_inches='tight') plt.savefig('out/' + plot_filename, dpi=300, bbox_inches='tight')
# Flush the plot
plt.clf()
# Generate tmp webpage/html filename # Generate tmp webpage/html filename
webpage_filename = 'tmp_' + sf + '.html' webpage_filename = 'tmp_' + sf + '.html'
# Generate template # Generate template