def flip(vec, height):
    """
    Flip the values of a list about a height.
    Useful for flipping y axis to plotting over an
    image with a flipped coordinate system.

    Parameters
    ----------
    vec : list of values to be flipped
    height : ing height about which to flip values

    Returns
    -------
    flipped list
    """
    to_return = [None]*len(vec)
    for i in range(len(vec)):
        to_return[i] = height - vec[i]
    return to_return