From 202df1d32b2c6071de66ca287be839d6b06322c0 Mon Sep 17 00:00:00 2001 From: fordprefect Date: Wed, 24 Jun 2020 16:46:25 +0200 Subject: [PATCH] small corrections: timestamp and metadata on images, headers in index.html --- all_countries.py | 2 ++ index.html | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/all_countries.py b/all_countries.py index e153f5f..2e3f0f2 100644 --- a/all_countries.py +++ b/all_countries.py @@ -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) diff --git a/index.html b/index.html index 8700b05..11f3800 100644 --- a/index.html +++ b/index.html @@ -21,7 +21,7 @@ Nicht schön, aber informativ. Die Daten stammen von hier und wird dort aus den WHO- und ECDC-Reports generiert.
-Basics +

Basics

Absolute Fälle @@ -44,7 +44,7 @@ Die Daten stammen von
-Ausgewählte Länder +

Ausgewählte Länder

Achtung! Die Datenqualität variiert zwischen den Ländern enorm, damit sind einzelne Länder auch nur schwer miteinander zu vergleichen!
@@ -92,7 +92,7 @@ Die Daten stammen von
-Alle Länder +

Alle Länder

Achtung! Die Datenqualität variiert zwischen den Ländern enorm, damit sind einzelne Länder auch nur schwer miteinander zu vergleichen!