title: Gnuplot: binary plotting two 1D records against eachother
body: <p>I want to plot a single curve of data values versus time values, both of which come from a binary file. Both of these sets (data and time) are stored as 59, 4-byte floats. The data values are found first by skipping 52192 bytes into the file, then reading the next 59 values. The time values are stored similarly at 181676 bytes from the beginning of the file in a set of 59, 4-byte floats.</p>
  
  <p>I'm able to plot each of these sets by themselves against the coordinate number, but I'm not able to plot the data versus the time. Here are the two lines that work as I would expect: </p>
  
  <pre><code>plot 'file.bin' binary endian=big record=59 skip=52192 using 1 title "data-1" with lines
  plot 'file.bin' binary endian=big record=59 skip=181676 using 1 title "time-1" with lines
  </code></pre>
  
  <p>Here is how I'm trying to plot data-1 versus time-1 (the 129248 skip value is 181676-52192+4(59)):</p>
  
  <pre><code>plot 'file.bin' binary endian=big record=59:59 skip=52192:129248 using 2:1 title "data vs time" with lines
  </code></pre>
  
  <p>However, this seems to concatenate the two records into the 1 column, rather than storing the first record in column 1 and the second in column 2. I'm not sure how to prevent this concatenation.</p>
  
  <p>I've read <a href="https://stackoverflow.com/questions/14472419/plotting-1d-binary-array-uint8-with-multiple-records-in-gnuplot">Plotting 1D binary array</a>, but it ultimately plots against the coordinate values instead of plotting the first record against the second.</p>