1
0
Fork 0

fix: Made annotations lighter (as in more transparency) for better readability

This commit is contained in:
Benedikt Bastin 2021-05-31 14:23:07 +02:00
parent bef88716d8
commit 2440cce1ae
1 changed files with 1 additions and 1 deletions

View File

@ -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,