Hi I have found the same problem but without an answer: enter link description here
My problem is that I try to plot data with the matplotlib and it connects the fir
I had similar problem as you can see:
BEFORE
I just sorted x using this:
x = sorted(x)
And the line disappeared as you can see: (But the data is disturbed due to sorting).
AFTER SORTING
You must also make sure the respective y values should also be accordingly arranged for the sorted x. The final output is here:
FIXED