title: gnuplot - plot different blocks with different color
body: <p>I have a data like this in a <code>file.dat</code></p>
  
  <pre><code>2 2
  5 5
  7 3
  
  100 102
  130 80
  116 134
  
  -40 -100
  -50 -60
  -61 -58
  </code></pre>
  
  <p>I would want to plot each block in different color, </p>
  
  <p>There is no restriction that a specific color, but just some visually different color.</p>
  
  <p>I tried with <code>linetype</code> like this:</p>
  
  <pre><code>for [IDX=0:2] 'file.dat' i IDX u 1:2 with linespoints linetype IDX
  </code></pre>
  
  <p>it plots all the blocks with different color and obviously only last one is visible.</p>
  
  <p>So what is the right way to do this?</p>