title: Dashed lines from points to axes in matplotlib
body: <p>I have a set of points which I am plotting like this:</p>
  
  <pre><code>import matplotlib.pyplot as plt`
  
  x = [1,2,3,4,5,6]
  y = [1,4,9,16,25,36]
  
  plt.scatter(x, y)
  
  plt.show()
  </code></pre>
  
  <p>This gives output like this</p>
  
  <p><a href="https://i.stack.imgur.com/Apxn7.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Apxn7.png" alt="enter image description here"></a></p>
  
  <p>What I want is to drop perpendiculars from the points to the axes, like in the figure below:</p>
  
  <p><a href="https://i.stack.imgur.com/jqjjr.png" rel="noreferrer"><img src="https://i.stack.imgur.com/jqjjr.png" alt="enter image description here"></a></p>
  
  <p>How can this be achieved?</p>