Browse Source

date legend annotation

main
parent
commit
9dad26a294
  1. BIN
      tornado/tornado_plot.pdf
  2. 7
      tornado/tornado_plot.py

BIN
tornado/tornado_plot.pdf

7
tornado/tornado_plot.py

@ -77,8 +77,13 @@ for country_code, country_data in countries.items():
# to add background: bbox=dict(boxstyle='square, pad=0.5', alpha=0.7, fc='white', ec='white')
# date markers
ax.scatter(row['cases_change'], row['daily_cases_avg'], color='k', s=10)
# XXX todo add legend for data annotations
# Date legend
ax.scatter(130, 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=':')
# remove frame
ax.spines['top'].set_visible(False)
ax.spines['right'].set_visible(False)

Loading…
Cancel
Save