GNUPLOT (Quick cheatsheet)

Here's how I plot using gnuplot (UNIX system):

First, I make a shell script (executable) that
looks like

   gnuplot "gnu"
   ghostview -magstep -2 data.ps

The file gnu looks like

   set output "data.ps"
   set terminal postscript portrait 
   set size .75,.75
   set xlabel "female choice, g"
   set ylabel "equilibrium frequency of t allele"
   show key
   plot[1:0.5] "data.9" title "tau = 0.90" with lines, "data.93" title "tau = 0.93" with lines, "data.95" title "tau = 0.95" with lines
   
There are lots of options available here, see the gnu manual online.

The files data.9, etc. look like

   1.0000 3.333333e-01
   0.9990 3.330550e-01
   0.9980 3.327757e-01
   0.9970 3.324954e-01
   0.9960 3.322140e-01
   0.9950 3.319316e-01 ...

which are pairs of abscissa, ordinate.

The result is shown below, and appears as data.ps in postscript. - ken 9/23/98

(postscript)(pdf)