From c99e43a762269f3349e4605a257eb57b40ab7e0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20M=C3=BCller?= Date: Sun, 29 Mar 2020 12:31:56 +0200 Subject: [PATCH] :bug: Plots are now properly saved --- Analyser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Analyser.py b/Analyser.py index e54fecd..3aa58e3 100644 --- a/Analyser.py +++ b/Analyser.py @@ -62,7 +62,7 @@ class Analyser: plt.show(block=True) filePath = ('graphs/casesGraph_' + country + '_' + datetime.now().strftime('%Y-%m-%d')) - plt.savefig(filePath) + fig.savefig(filePath) return filePath else: @@ -91,7 +91,7 @@ class Analyser: plt.show(block=True) filePath = ('graphs/casesIncreaseGraph_' + country + '_' + datetime.now().strftime('%Y-%m-%d')) - plt.savefig(filePath) + fig.savefig(filePath) return filePath else: