title: Find local maximum of data files in gnuplot
body: <p>I have a list of data (two columns) and I want to plot in gnuplot only the value for which my second column has a local maximum. </p>
  
  <p>To do so I would like to see if the second column of the ith row is bigger than the (i-1) and (i+1)th rows. </p>