small corrections: timestamp and metadata on images, headers in index.html
This commit is contained in:
@@ -3,6 +3,7 @@ Plot overview plot for each country separately
|
||||
"""
|
||||
import matplotlib.pyplot as pp
|
||||
import numpy as np
|
||||
import time as time_module
|
||||
basename="all_"
|
||||
|
||||
def plot(data, countries):
|
||||
@@ -26,6 +27,7 @@ def plot(data, countries):
|
||||
fig.legend(frameon=False, loc="upper left", bbox_to_anchor=(0,1), bbox_transform=ax1.transAxes)
|
||||
pp.title(loc)
|
||||
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.close(fig)
|
||||
|
||||
Reference in New Issue
Block a user