feat: Embed mean vaccination rate into plot
This commit is contained in:
parent
55147eeed5
commit
386666d5b3
1 changed files with 1 additions and 1 deletions
2
plot.py
2
plot.py
|
@ -89,7 +89,7 @@ def plot_extrapolation_portion(percentage):
|
||||||
ax2.set_xlim(xmax=dates[0] + datetime.timedelta(days=percentage * days_extrapolated))
|
ax2.set_xlim(xmax=dates[0] + datetime.timedelta(days=percentage * days_extrapolated))
|
||||||
ax2.grid(True)
|
ax2.grid(True)
|
||||||
ax2.plot(dates, cumulative, color='red', label='Kumulierte Impfungen')
|
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()
|
#ax2.plot()
|
||||||
|
|
||||||
ax.legend(loc='upper left')
|
ax.legend(loc='upper left')
|
||||||
|
|
Loading…
Reference in a new issue