def getRange(xs, ys, xMin, xMax):
    """
    Return the Ys for the range of points where the Xs
    is at or between the given min/max limits
    """
    rangeYs = []
    for i in range(len(ys)):
        x = xs[i]
        if(x >= xMin and x <= xMax):
            rangeYs.append(ys[i])
    if len(rangeYs) == 0:
        raise Exception(f"no Y data in range {xMin} to {xMax}")
    return rangeYs