def plot_pretty_annotation_on_axis(ax, val, up_lim, text='', on_x=False, on_y=False, shift=None):
    if on_x:
        ax.plot([val, val], [0.04, up_lim], 'k--', linewidth=1)
        shift = (0.0002 if (shift is None) else shift)
        ax.text((val + shift), 0.03, text, fontsize=14)
    if on_y:
        ax.plot([(- 0.0016), up_lim], [val, val], 'k--', linewidth=1)
        shift = ((- 0.05) if (shift is None) else shift)
        ax.text((- 0.0017), (val + shift), text, fontsize=14)
    plot_pretty_tick(ax, val, on_x=on_x, on_y=on_y)
def plot_pretty_annotation_on_axis(ax, val, up_lim, text=, on_x=False, on_y=False, shift=None):
    if on_x:
        ax.plot([val, val], [0.04, up_lim], 'k--', linewidth=1)
        shift = (0.0002 if (shift is None) else shift)
        ax.text((val + shift), 0.03, text, fontsize=14)
    if on_y:
        ax.plot([(- 0.0016), up_lim], [val, val], 'k--', linewidth=1)
        shift = ((- 0.05) if (shift is None) else shift)
        ax.text((- 0.0017), (val + shift), text, fontsize=14)
    plot_pretty_tick(ax, val, on_x=on_x, on_y=on_y)