title: plotting multiple column from excel with matplotlib
body: <p>I have data which looks like :</p>
  
  <pre><code>sites   mp1     mp2
  ry99    0.66    0.54
  ry98    0.71    0.54
  ry97    0.58    0.45
  ry96    0.65    0.55
  </code></pre>
  
  <p>I have the list below in an excel file and I would like to plot the second and third column against the first one, all in the same graph using matplotlib. </p>
  
  <p>When I tried the following code, I receive an error :</p>
  
  <pre><code>plt.plot (arr[1:,0],arr[1:,n],label=names[n])
  IndexError: too many indices for array
  </code></pre>
  
  <p>This is my code :</p>
  
  <pre><code>import numpy as np
  import matplotlib.pyplot as plt
  arr = np.genfromtxt('C:\\Users\\abdulaziz.bello\\Desktop\\geodesy\\es99.csv', delimiter=' ', dtype=None) 
  names = (arr[0]) 
  for n in range (1,len(names)): 
      plt.plot (arr[1:,0],arr[1:,n],label=names[n]) 
  plt.legend()    
  plt.show()
  </code></pre>
  
  <p>Any help will be highly appreciated to solve my problem. I'm beginning with Python</p>