def METHOD_NAME(lon_range, lat_range, figh=8):
    """Calculate figure size based on data
    The required figure width is computed based on the input height and the
    aspect ratio of the longitude and latitude arrays
    Parameters
    ----------
    lon_range : tuple
        2-element tuple specifying longitude range (may also be list or array)
    lat_range : tuple
        2-element tuple specifying latitude range (may also be list or array)
    figh : int
        figure height in inches
    add_cbar : bool
        if True, the width is adapted accordingly
    Returns
    -------
    tuple
        2-element tuple containing figure width and height
    """
    wfac = (lon_range[1] - lon_range[0]) / (lat_range[1] - lat_range[0])
    figw = int(wfac * figh)
    return (figw, figh)