title: Gnuplot: connecting two data with line at a certain point from different data files
body: <p>This question is an extension <a href="https://stackoverflow.com/questions/37835244/gnuplot-connecting-two-data-with-line-at-a-certain-point/37836469?noredirect=1#comment63137160_37836469">of a previously answered one</a>.</p>
  
  <p>I want a graph using gnuplot with two data in mixed scheme. This is a data consisting of 3 columns:</p>
  
  <pre><code>#x   y1   y2
  1   0    1    
  2   0    1    
  3   0    1    
  4   0    1    
  5   0    1    
  6   0    1    
  7   0    1    
  8   0    1    
  9   0.1  1.2
  10  0.1  1.23
  </code></pre>
  
  <p>What I want is that one line draws without seam. e.g.</p>
  
  <p>From x=1 to x=5, use y1 value, then from x=6 to x=10 use y2 value.</p>
  
  <p>And, all the points are connected with one single line. Does any body know how to make it with simple gnuplot command?</p>
  
  <p><strong>One more related question is there. If the data in 3rd column is separated to other file, say sheme2.dat, how can i draw a same graph with pure gnuplot commands?</strong></p>