title: How to connect the points of a scatterplot with a dashed line?
body: <p>I've a scatter plot</p>
  <pre><code>import matplotlib.pyplot as plt
  import numpy as np
  
  x = [(1,0), (0, 1), (2, 1), (3, 1)]
  y = [1, 4, 8.5, 17.5]
  plt.scatter([str(i) for i in x], y, linestyle='dashed', marker='s')
  plt.show()
  </code></pre>
  <p><a href="https://i.stack.imgur.com/IUHc1m.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IUHc1m.png" alt="enter image description here" /></a></p>
  <p>I tried to use the <code>linestyle</code> key to connect the points by a dashed line. Unfortunately, this didn't work.</p>
  <p>Any suggestions on how to do this?</p>
  <p>EDIT:
  I'm using scatter plot for the reason mentioned <a href="https://stackoverflow.com/questions/64980924/plot-a-list-of-tuples-on-x-axis/64981033#64981033">here</a></p>