#!/bin/sh gnuplot -persist << EOF set terminal postscript color solid set ylabel "altitude (ft)" set y2label "acceleration (g)" set xlabel "time (s)" set xtics border out nomirror set ytics border out nomirror set y2tics border out nomirror plot "$1" using 1:2 with lines axes x1y1, "$1" using 1:3 with lines axes x1y1, "$1" using 1:4 with lines axes x1 "$1" using 1:2 with lines axes x1y2, " EOF