1
0
Fork 0

feat: Added annotation for current week in weekly plot

This commit is contained in:
Benedikt Bastin 2021-03-23 12:42:51 +01:00
parent 2cbac85166
commit 0020d2b034
1 changed files with 13 additions and 0 deletions

13
plot.py
View File

@ -413,6 +413,19 @@ def plot_vaccination_bar_graph_total_time_by_week():
},
ha='center')
if i == len(bar1) - 1:
plt.annotate('Diese Woche', (x, hg * 1000 + 50000),
xytext=(x, ax.get_ylim()[1]),
arrowprops={
'arrowstyle': '->',
'relpos': (0, 0)
},
bbox={
'boxstyle': 'square',
'fc': 'white',
'ec': 'black'
},
ha='left')
i = i + 1