if x is None:
        y = np.linspace(0, 1)