to me it looks like the last point in your data array [(x,y)] is identical to the first point. An XY-graph produces a closed curve then. E.G. try to plot the array [(0,0),(1,2),(2,3),(3,4),(0,0)]...it produces a bow-tie figure.
Just remove the last point from your array.