move plots to own directory, catch all provided data
This commit is contained in:
@@ -140,7 +140,7 @@ def plot(data, countries, pop, **kwargs):
|
||||
fig.tight_layout()
|
||||
pp.text(0.002,0.005, f"plot generated {time_module.strftime('%Y-%m-%d %H:%M')}, CC-by-sa-nc, origin: dukun.de/corona, datasource: ourworldindata.org/coronavirus-source-data", color="dimgrey", fontsize=8, transform=fig.transFigure)
|
||||
|
||||
pp.savefig("ac_"+name+".png")
|
||||
pp.savefig("img/ac_"+name+".png")
|
||||
pp.close(fig)
|
||||
except Exception as e:
|
||||
print(f"=====> plotting failed for {loc}, skipping plot. Error: {e}")
|
||||
|
||||
Reference in New Issue
Block a user