Fixed linear function.

the first y value in the line was skewed due to it not being 0 but X