def getMinMax(set):
    """get tuple with minimum and maximum x-values used by the set."""
    x_min = None
    x_max = None
    for x in  set.getValuesX():
        if x_min is None:
            x_min = x
        x_max = x

    return (x_min,x_max)