title: Reading gnuplot legend from csv
body: <p>I've got a data.csv file which is structured like this:</p>
  
  <pre><code>n    John Smith stats     Sam Williams stats
  1                23.4                   44.1
  2                32.1                   33.5
  3                42.0                   42.1
  </code></pre>
  
  <p>Currently I'm plotting with the following command in gnuplot:</p>
  
  <pre><code>plot 'data.csv' using 1:2 title 'John' with lines, '' using 1:3 title 'Sam' with lines
  </code></pre>
  
  <p>The question is how to retrieve first names from the first line of .csv rather than entering them manually? </p>
  
  <p>In addition, is it possible to make it adjustable in case I add a column to the table, so it automatically adds another line with the appropriate title?</p>