title: smooth the path of line with python
body: <p>I have a set of points, all together they create a track, where the sequence is crucial. I can plot the track using lines, how could I smooth it after or while new points are fetching? Track might look like 1 pic:</p>
  
  <p>Picture One <a href="https://i.stack.imgur.com/oDm5n.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oDm5n.png" alt="Picture One"></a></p>
  
  <p>Picture Two <a href="https://i.stack.imgur.com/xX2LX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xX2LX.png" alt="Picture Two"></a></p>
  
  <p>Picture Three <a href="https://i.stack.imgur.com/HBCKd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HBCKd.png" alt="Picture Three"></a></p>
  
  <p>2 picture is what I want to have in the end. I tried to interpolate with <code>scipy.interpolate</code> but it didn't work, because it requires sorted sequence (I only achieved pic3 in the end)</p>