1
0
Fork 0

feat: Embed mean vaccination rate into plot

This commit is contained in:
Benedikt Bastin 2021-01-15 19:47:30 +01:00
parent 55147eeed5
commit 386666d5b3
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ def plot_extrapolation_portion(percentage):
ax2.set_xlim(xmax=dates[0] + datetime.timedelta(days=percentage * days_extrapolated))
ax2.grid(True)
ax2.plot(dates, cumulative, color='red', label='Kumulierte Impfungen')
ax2.plot(extrapolated_dates, extrapolated_vaccinations, color='orange', label='Kumulierte Impfungen (linear extrap.)')
ax2.plot(extrapolated_dates, extrapolated_vaccinations, color='orange', label='Extrap. kumulierte Impfungen\n({} Impfungen/Tag)'.format(int(np.round(mean_vaccinations_daily))))
#ax2.plot()
ax.legend(loc='upper left')