This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def add_range_annotation(ax, start, end, txt_str, y_height=.5, txt_kwargs=None, arrow_kwargs=None): | |
""" | |
Adds horizontal arrow annotation with text in the middle | |
Parameters | |
---------- | |
ax : matplotlib.Axes | |
The axes to draw to | |
start : float |