link function

Link y to the time scale of x