title: matplotlib add legend from csv title row to line graph
body: <p>I have 8 columns in my result.csv, and need to add legend to the line graph I have. My code is:</p>
  
  <pre><code>per_data=genfromtxt('result.csv',delimiter=',')
  plt.plot(per_data)
  plt.xlabel ('x stuff')
  plt.ylabel ('y stuff')
  plt.title('my test result')
  plt.grid()
  plt.show()
  </code></pre>
  
  <p>it gives me:</p>
  
  <p><img src="https://i.stack.imgur.com/17HKL.png" alt="Result of 8 line graph">
  how can I add a legend which happened to be the title row in my csv file? </p>