title: How to print the maximum of multiple functions in Gnuplot
body: <p>My question is pretty basic. I am plotting several functions at once using gnuplot, and I want to print out (in either a file or on the graph itself) the maximum y-values of every function. Any idea how I could do that?</p>
  
  <p>I looked into STATS and GPVAL_DATA_Y_MAX but I can't really figure out how to make them work with several functions at the same time.</p>
  
  <p>Without going into too much details, let's suppose that my file looks like that :</p>
  
  <pre><code>plot 'file1.dat' us 1:2 title "file1" w lines,\
       'file2.dat' us 1:2 title "file2" w lines,\
       'file3.dat' us 1:2 title "file3" w lines
  </code></pre>