Supplement/comparison_tools/plots.py
def rangecalc(x, y=None, pad=0.05):
    """
    Calculate padded range limits for axes.
    """        
    mn = np.nanmin([np.nanmin(x), np.nanmin(y)])
    mx = np.nanmax([np.nanmax(x), np.nanmax(y)])
    rn = mx - mn
    
    return (mn - pad * rn, mx + pad * rn)
def rangecalc(x, y=None, pad=0.05):
    """
    Calculate padded range limits for axes.
    """        
    mn = np.nanmin([np.nanmin(x), np.nanmin(y)])
    mx = np.nanmax([np.nanmax(x), np.nanmax(y)])
    rn = mx - mn
    
    return (mn - pad * rn, mx + pad * rn)
def rangecalc ( x , y = None , pad = 0.05 ) : mn = np . nanmin ( [ np . nanmin ( x ) , np . nanmin ( y ) ] ) mx = np . nanmax ( [ np . nanmax ( x ) , np . nanmax ( y ) ] ) rn = mx - mn return ( mn - pad * rn , mx + pad * rn )
Calculate padded range limits for axes.
Calculate padded range limits for axes .