Could it be the hysteresis of the switch (the difference between the on and the off threshold positions)? Or even backlash on the x axis?

Russell.