From 0020d2b03444f01976a06416ac18c3444de00fbc Mon Sep 17 00:00:00 2001 From: Benedikt Bastin Date: Tue, 23 Mar 2021 12:42:51 +0100 Subject: [PATCH] feat: Added annotation for current week in weekly plot --- plot.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/plot.py b/plot.py index d7b790a..32fec7a 100644 --- a/plot.py +++ b/plot.py @@ -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