notebooks/common.py
def add_h_refence(ax, reference):
    """Add a horizontal reference line."""
    span = ax.get_ylim() 
    if span[0] <= reference <= span[1]:
        ax.axhline(y=reference, c='#999999', lw=0.5)
Add a horizontal reference line.
Add a horizontal reference line.
Add a horizontal reference line .
def add_h_refence(ax, reference):
    span = ax.get_ylim() 
    if span[0] <= reference <= span[1]:
        ax.axhline(y=reference, c='#999999', lw=0.5)
def add_h_refence ( ax , reference ) : span = ax . get_ylim ( ) if span [ 0 ] <= reference <= span [ 1 ] : ax . axhline ( y = reference , c = '#999999' , lw = 0.5 )
Add a horizontal reference line.
Add a horizontal reference line .
"""Add a horizontal reference line."""
ax
reference