This is a tool for graphing French public health autorities hospital data.
-
réaanddcgraphs: moving averages (7 days, centered),
ICU admissions and daily deaths respectively -
grey linesubliminal dots: 25% of usual daily all causes mortality,
for département or zone (insee detailled data 2018+2019, monthly averages) -
red lines: «exponential» regressions on chunks ofdc, red balls indicate doubling time (or divide-by-two time), above line when increasing, below line when decreasing -
green lines: «exponential» regressions on chunks ofréa,
green balls indicate doubling or divide-by-two time
data: Santé Publique France > data.gouv.fr > nouveaux-covid19.csv
$ ./graphit.py -h
usage: graphit.py [-h] [--zoom-1-100] [--two-months] [--full] [--episode-1]
[--fouché] [--pred] [--noise] [--round] [--week] [--hills]
[--log-scale] [--style <style>] [--noshow]
arg [arg ...]
positional arguments:
arg dept [dept ...] or region
(pc|gc|idf|paca|sud|ra|auv|ara|bfc|fc|ge|met)
optional arguments:
-h, --help show this help message and exit
--zoom-1-100 graph using 1-100 y scale [default is 1-50]
--two-months graph last two months
--full graph full history from day one
--episode-1 graph Episode I time window
--fouché graph Fouché-fixed réa (5/8)
--pred graph predictor
--noise show mortality noise level
--round show rounded values graphs
--week show weekly average graph
--hills show dc as hills instead of bars
--log-scale use logarithmic y-scale for graphs
--style <style> use <style> instead of xkcd [try: fast]
--noshow don't display graph on screen
sudo apt-get install python3-tk
mkvirtualenv python=`which python3`
pip install -r requirements.txt
./fetch.sh
./graphit.py
./graphit.py idf
./graphit.py 13
./graphit.py 69 38
./graphit.py met --full
./graphit.py met --two-months --noise
./graphit.py met --episode-1
./graphit.py met --style seaborn
make xkcd.ttf clean
Note: the usual xkcd-like font is Humor-Sans, but it has no latin glyphs.
