I need to "highlight" a few positions on the x-axis of my charts/graphs where significant events occurred. Since the chart/graph is really all over the place I don't want to add vlines inside the chart/graph area itself but rather add arrows, or lines, on top of the chart/graph area together with a number I can refer to later on when mentioning the event in writing ((A) for example).
I've managed to plot vlines, but the label isn't visible at all. Most of all I would like arrows instead of lines since that would be more clear to the reader...
How I'm plotting right now
plt.vlines(
x = position[0],
ymin = axis_ymax,
ymax = axis_ymax + int(axis_ymax * 0.05),
linestyles = 'solid',
label = '(A)'
).set_clip_on(False)
