feat: Added annotation for current week in weekly plot
This commit is contained in:
parent
2cbac85166
commit
0020d2b034
1 changed files with 13 additions and 0 deletions
13
plot.py
13
plot.py
|
@ -413,6 +413,19 @@ def plot_vaccination_bar_graph_total_time_by_week():
|
||||||
},
|
},
|
||||||
ha='center')
|
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
|
i = i + 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue