title: Matplotlib plt.plot with enumerate not working
body: <pre><code>import numpy as np 
  import matplotlib.pyplot as plt 
  
  array = np.array([[1,2,3,4,5,6],[10,20,30,40,50,60],[3,4,5,6,7,8],[100,200,300,400,500,600]])
  
  def plot(list):
      fig = plt.figure()
      ax = fig.add_subplot(111)
  
      for a,i in enumerate(list.T):
          ax.scatter(i[0],i[1],c='red') # This is plotted
          ax.plot(i[2],i[3],'g--') # THIS IS NOT BEING PLOTTED !!!! 
      fig.show()
  
  plot(array)
  </code></pre>
  
  <p>Now, I need to call <code>plot</code> several times <strong>using different <code>array</code> lists.</strong> So my <code>for</code> loop cannot be removed. Is there any other way to plot a dotted line apart from calling <code>plt.plot</code> instead ? </p>
  
  <p>This is the plot I get: </p>
  
  <p><a href="https://i.stack.imgur.com/dNLOq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dNLOq.png" alt="enter image description here"></a></p>
  
  <p><strong>As you can see, I am not getting the <code>plt.plot(i[2],i[3],'g--')</code>. Why is this so ?</strong> </p>
  
  <p>But when you print the values using the same for loop:</p>
  
  <pre><code>In [21]: for a,i in enumerate(array.T):
      ...:     print i[2],i[3]
      ...:     
  3 100
  4 200
  5 300
  6 400
  7 500
  8 600
  </code></pre>
  
  <p>The values are perfectly printed. They however are not plotted. </p>