title: Is it possible to set the "linetype" in gnuplot while using "linecolor variable"?
body: <p>I have a tab-separated data file containing a number of (double-blank-line-separated) datasets and I want to plot a line for each of them. I want to be able to set the linetype (by this I'm referring to solid/dashed/dotted). I want each line to be a different color.</p>
  
  <p>I can plot them all different colors using this:</p>
  
  <pre><code>plot 'example.dat' using 1:2:(column(-2)) with lines linecolor variable
  </code></pre>
  
  <p>And I can set the linetype but plot them all the same color using this:</p>
  
  <pre><code>plot 'example.dat' using 1:2:(column(-2)) with lines linetype 5
  </code></pre>
  
  <p>But when I combine them, the linetype is not what I set it to (in this case I just get a solid line).</p>
  
  <pre><code>plot 'example.dat' using 1:2:(column(-2)) with lines \
    linetype 5 linecolor variable
  </code></pre>
  
  <p>Is there a way to achieve this?</p>
  
  <p>I'm using gnuplot 4.6, tried with the x11 and postscript terminals.</p>