From: Neil Smith Date: Wed, 13 May 2020 15:21:50 +0000 (+0100) Subject: Tweaked graph output X-Git-Url: https://git.njae.me.uk/?a=commitdiff_plain;h=d66cfbd98d228749d035d898d3fffac9a781de9f;p=covid19.git Tweaked graph output --- diff --git a/covid.ipynb b/covid.ipynb index 55e9d3d..fc77c0d 100644 --- a/covid.ipynb +++ b/covid.ipynb @@ -3496,7 +3496,7 @@ }, { "cell_type": "code", - "execution_count": 199, + "execution_count": 275, "metadata": {}, "outputs": [ { @@ -3517,7 +3517,7 @@ "for c in COUNTRIES_CORE:\n", " lvi = deaths[c].last_valid_index()\n", " ax.text(x = lvi + 1, y = deaths[c][lvi], s = c)\n", - "# plt.savefig('covid_deaths_total_linear.png') " + "plt.savefig('covid_deaths_total_linear.png') " ] }, { @@ -3569,7 +3569,7 @@ "for c in COUNTRIES_OF_INTEREST:\n", " lvi = deaths[c].last_valid_index()\n", " ax.text(x = lvi + 1, y = deaths[c][lvi], s = c)\n", - "plt.savefig('covid_deaths_total_linear.png') " + "# plt.savefig('covid_deaths_total_linear.png') " ] }, { diff --git a/covid.md b/covid.md index 0dcc353..318cd5d 100644 --- a/covid.md +++ b/covid.md @@ -233,7 +233,7 @@ ax = deaths[COUNTRIES_CORE].plot(figsize=(10, 6), title="Total deaths, linear") for c in COUNTRIES_CORE: lvi = deaths[c].last_valid_index() ax.text(x = lvi + 1, y = deaths[c][lvi], s = c) -# plt.savefig('covid_deaths_total_linear.png') +plt.savefig('covid_deaths_total_linear.png') ``` ```python @@ -249,7 +249,7 @@ ax = deaths[COUNTRIES_OF_INTEREST].plot(figsize=(10, 6), title="Total deaths, li for c in COUNTRIES_OF_INTEREST: lvi = deaths[c].last_valid_index() ax.text(x = lvi + 1, y = deaths[c][lvi], s = c) -plt.savefig('covid_deaths_total_linear.png') +# plt.savefig('covid_deaths_total_linear.png') ``` ```python diff --git a/covid_deaths_total_linear.png b/covid_deaths_total_linear.png index f4ace1e..1fe46cc 100644 Binary files a/covid_deaths_total_linear.png and b/covid_deaths_total_linear.png differ