Skip to content
Snippets Groups Projects
Commit 062d4525 authored by Florian Franzmann's avatar Florian Franzmann Committed by Florian Franzmann
Browse files

Mark the current date in the plot

parent f3cbc2ea
No related branches found
No related tags found
No related merge requests found
......@@ -49,6 +49,7 @@ ax1.set_ylabel("# aktive Fälle", fontproperties=prop)
linewidth=0.5
current_date = datetime.datetime.now().date()
#
# assumptions: https://www.libertariannews.org/2020/02/10/corona-virus-death-rates-what-are-your-odds-of-surviving/
# 0.6% of treated cases die
......@@ -70,6 +71,7 @@ plt.axhline(y=available_beds, color='r', label="Krankenhausbetten (" + str(avail
# https://de.statista.com/statistik/daten/studie/880182/umfrage/auslastung-der-intensivstationen-in-deutschen-krankenhaeusern-nach-groessenklasse/
plt.axhline(y=available_icus, color='r', label="Intensivbetten (" + str(available_icus) + ")", linestyle="--", linewidth=linewidth)
plt.axvline(x=current_date, color='black', linestyle="--", linewidth=linewidth)
ax1.grid(which='major', linestyle='-.', linewidth=(linewidth / 2))
ax1.grid(which='minor', linestyle=':', linewidth=(linewidth / 2))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment