From 2440cce1ae3882ac614863fdb1ae33355a2d1e73 Mon Sep 17 00:00:00 2001 From: Benedikt Bastin Date: Mon, 31 May 2021 14:23:07 +0200 Subject: [PATCH] fix: Made annotations lighter (as in more transparency) for better readability --- plot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plot.py b/plot.py index 381e3ae..c395ead 100644 --- a/plot.py +++ b/plot.py @@ -244,7 +244,7 @@ def save_plot(plot_name): def labeled_timeperiod(ax, start, end, text, color='lightgrey', y_height = 100): centre = start + (end - start) / 2 - ax.axvspan(start, end, color=color, alpha=0.5) + ax.axvspan(start, end, color=color, alpha=0.2) ax.text(centre, ax.get_ylim()[1] * (y_height / 100), text, bbox={ 'boxstyle': 'square', 'fc': color,