I have a linear coordinate on the x axis with outer and inner limits. I add values to the outer limits and depending on the result it gets a coordinate on the inner limits.