title: GNUplot 4.2 syntax errors when trying to use set style line
body: <p>I have been searching all over the internet for an answer to this.</p>
  
  <p>It seems there are many versions of how to plot color lines in gnuplot.
  I have a data file that has 4 columns in it. I want to plot each column with a different color.
  This is the snippet of code I am using per the gnuplot help file, but I get a syntax error when I use these.</p>
  
  <pre><code>set style line 1 lt 1 lc 1 lw 3 # red
  set style line 2 lt 1 lc 2 lw 3 #green
  set style line 3 lt 1 lc 3 lw 3 #blue
  set style line 4 lt 1 lc 4 lw 3 #magenta
  </code></pre>
  
  <p>I have terminal set to postscript.</p>
  
  <p>I have tried all combinations of this line type style including linestyle, and lc rgb 'red', for example, and none of them work!</p>
  
  <p>Can anyone tell me what is wrong?</p>
  
  <p>Let me clarify, this is a gnuplot script in a python script. code looks like this:</p>
  
  <pre class="lang-py prettyprint-override"><code>plot = open('plot.pg','w')
  plot_script = """#!/usr/bin/gnuplot
  reset
  set terminal postscript 
  #cd publienhanced color
  set output "roamingresult.ps"
  set xlabel "time (seconds)"
  set xrange [0:900]
  set xtics (0, 60, 120, 180, 240, 300, 360, 420, 480, 540, 600, 660, 720, 780, 840, 900)
  set ylabel "AP1         AP2         AP3       AP4"
  set yrange [0:5]
  set nokey
  set grid
  set noclip one
  set ytics 1
  #set style data boxes"""
  set style line 1 lt 1 lc 1 lw 3
  set style line 2 lt 1 lc 2 lw 3
  set style line 3 lt 1 lc 3 lw 3
  set style line 4 lt 1 lc 4 lw 3
  </code></pre>