Supplement/comparison_tools/plots.py
def rangecalcx(x, pad=0.05):
    """
    Calculate padded range limits for axes.
    """        
    mn = np.nanmin(x)
    mx = np.nanmax(x)
    rn = mx - mn

    return (mn - pad * rn, mx + pad * rn)
def rangecalcx(x, pad=0.05):
    """
    Calculate padded range limits for axes.
    """        
    mn = np.nanmin(x)
    mx = np.nanmax(x)
    rn = mx - mn

    return (mn - pad * rn, mx + pad * rn)
Calculate padded range limits for axes.