new data sheet length, added people_fully_vaccinated

This commit is contained in:
fordprefect
2021-01-28 16:50:53 +01:00
parent c3a367f404
commit 59af4f6f20
2 changed files with 11 additions and 2 deletions

View File

@@ -133,6 +133,7 @@ Ein Infoservice von <a href=dukun.de>dukun.de</a>; Anregungen gern <a href="mail
positive_rate = data[loc]['positive_rate']
tests_per_case = data[loc]['tests_per_case']
tests_units = data[loc]['tests_units']
people_fully_vaccinated = data[loc]['people_fully_vaccinated']
# plots
@@ -221,6 +222,8 @@ Ein Infoservice von <a href=dukun.de>dukun.de</a>; Anregungen gern <a href="mail
ax1.plot(np.array(time), new_vaccinations, color="grey", linestyle="--", linewidth=1, label="new vaccinations")
if not np.isnan(total_vaccinations).all():
ax2.plot(np.array(time), total_vaccinations, color="blue", linestyle="-", linewidth=1, label="total vaccinations")
if not np.isnan(people_fully_vaccinated).all():
ax2.plot(np.array(time), people_fully_vaccinated, color="green", linestyle="-", linewidth=1, label="people fully vaccinated")
immune_mask = ~np.isnan(total_vaccinations) & ~np.isnan(total_cases)
assert len(total_vaccinations) == len(total_cases)