title: Draw evenly spaced lines in python
body: <p>Is there a way to draw evenly spaced vertical lines in python ? 
  I'm trying to draw vertically lines evenly spreaded on a graph, I'm trying to divide the range of domian by the length of the array to get evenly spaced vertical lines, I'm wondering is there any other way to do this ?</p>
  
  <pre><code>import matplotlib.pyplot as plt
  
  array = [2,3,1,5,7,9]
  
  xMin = -30
  xMax = 30
  plt.ylim(0,30 )
  plt.xlim(xMin,xMax)
  
  factor = (xMax - xMin)/len(array)
  
  for i in array:
     plt.plot((xMin,xMin),(0,i),'-k')
     xMin+= factor
  
  plt.show()
  </code></pre>
  
  <p>PS.The numbers in the array means the value for Y-axis
  <a href="https://i.stack.imgur.com/2UqoV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2UqoV.png" alt="enter image description here"></a></p>