Here is a sample script file I use (i.e., my blood pressure script)
$ cat bpanal1.scr
#/bin/sh
cat > temp.dat <</EOF
set xrange [24:54]
set yrange [60:160]
set xtic (24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54)
set ytic (60,70,80,90,100,110,120,130,140,150,160)
set time
set grid
set xlabel "time (months after Dec 31, 2000)"
set ylabel "blood pressure"
set title "time vs. blood pressure"
plot "bpaverage.dat" using 1:2 title ' systolic morning' with lines, \
"bpaverage.dat" using 1:3 title 'diastolic morning' with lines, \
"bpaverage.dat" using 1:4 title ' systolic night' with lines, \
"bpaverage.dat" using 1:5 title ' diastolic night' with lines
pause 9
set output "bpanal1.ps"
set terminal postscript color
replot
/EOF
gnuplot < temp.dat
rm temp.dat
You could create a settings.dat file with a few settings.
Then
gnuplot < settings.dat
Sheng-Chieh
|