🐛 Plots are now properly saved
This commit is contained in:
parent
e5be34dd55
commit
c99e43a762
|
@ -62,7 +62,7 @@ class Analyser:
|
||||||
|
|
||||||
plt.show(block=True)
|
plt.show(block=True)
|
||||||
filePath = ('graphs/casesGraph_' + country + '_' + datetime.now().strftime('%Y-%m-%d'))
|
filePath = ('graphs/casesGraph_' + country + '_' + datetime.now().strftime('%Y-%m-%d'))
|
||||||
plt.savefig(filePath)
|
fig.savefig(filePath)
|
||||||
|
|
||||||
return filePath
|
return filePath
|
||||||
else:
|
else:
|
||||||
|
@ -91,7 +91,7 @@ class Analyser:
|
||||||
|
|
||||||
plt.show(block=True)
|
plt.show(block=True)
|
||||||
filePath = ('graphs/casesIncreaseGraph_' + country + '_' + datetime.now().strftime('%Y-%m-%d'))
|
filePath = ('graphs/casesIncreaseGraph_' + country + '_' + datetime.now().strftime('%Y-%m-%d'))
|
||||||
plt.savefig(filePath)
|
fig.savefig(filePath)
|
||||||
|
|
||||||
return filePath
|
return filePath
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user