Browse Source

Update tornado plot with new data

main
parent
commit
a429d8053a
  1. BIN
      main.pdf
  2. 2
      main.tex
  3. BIN
      tornado/tornado_plot.pdf
  4. 4
      tornado/tornado_plot.py

BIN
main.pdf

2
main.tex

@ -51,7 +51,7 @@ Diagrams for:\\Parikka, Jussi, and Tony D. Sampson. Forthcoming.\\`The Operation
\begin{figure}
\centering
\includegraphics[width=\textwidth]{tornado/tornado_plot.pdf}
\caption{`Phase portrait diagram' (Dorling 2020), showing daily number of COVID-19 cases and rate of change in the UK. Data from John Hopkins University, Baltimore, USA, via https://disease.sh API (accessed 10 Sept. 2020).\\---\\
\caption{`Phase portrait diagram' (visualisation method from Dorling 2020), showing daily number of COVID-19 cases and rate of change in the UK. Data from John Hopkins University, Baltimore, USA, via https://disease.sh API (accessed 21 Oct. 2020).\\---\\
Ref: Dorling, Danny. 2020. `Covid19 | SLOWDOWN'. 2020. http://www.dannydorling.org/books/SLOWDOWN/Covid19.html. (accessed 10 Sept. 2020)}
\end{figure}

BIN
tornado/tornado_plot.pdf

4
tornado/tornado_plot.py

@ -71,7 +71,7 @@ for country_code, country_data in countries.items():
xytext=(28,-2),
textcoords='offset points',
ha='right',
size=8,
size=7,
color='k')
# to use same color as current cuvre: color=line.get_color()
# to add background: bbox=dict(boxstyle='square, pad=0.5', alpha=0.7, fc='white', ec='white')
@ -79,7 +79,7 @@ for country_code, country_data in countries.items():
ax.scatter(row['cases_change'], row['daily_cases_avg'], color='k', s=10)
# Date legend
ax.scatter(130, 0, color='k', s=10)
ax.scatter(1150, 0, color='k', s=10)
ax.annotate('Dates: day/month 2020', xy=(220,12), xycoords='axes points')
# Line at x=0
plt.axvline(x=0, c='black', lw=1, ls=':')

Loading…
Cancel
Save