fix: Made annotations lighter (as in more transparency) for better readability
This commit is contained in:
parent
bef88716d8
commit
2440cce1ae
1 changed files with 1 additions and 1 deletions
2
plot.py
2
plot.py
|
@ -244,7 +244,7 @@ def save_plot(plot_name):
|
||||||
|
|
||||||
def labeled_timeperiod(ax, start, end, text, color='lightgrey', y_height = 100):
|
def labeled_timeperiod(ax, start, end, text, color='lightgrey', y_height = 100):
|
||||||
centre = start + (end - start) / 2
|
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={
|
ax.text(centre, ax.get_ylim()[1] * (y_height / 100), text, bbox={
|
||||||
'boxstyle': 'square',
|
'boxstyle': 'square',
|
||||||
'fc': color,
|
'fc': color,
|
||||||
|
|
Loading…
Reference in a new issue