I had a similar problem, as you can see:
BEFORE 
I just sorted xusing this:
x = sorted(x)
And the line disappeared, as you can see: (But the data is distorted due to sorting).
AFTER SORTING
You must also ensure that the corresponding values ymust also be properly ordered for the sorted one x. The final result is here:
