Rev 267 | Blame | Last modification | View Log | Download
#!/bin/bashfile=$1t1=$2t2=$3[ "$t1" = "" ] && t1=0[ "$t2" = "" ] && t2=86400awk -v "t1=$t1" -v "t2=$t2" '{$1 %= 86400if( $1 < t1) nextif( $1 > t2) exit}' $file > /tmp/nplot.$$echo "set data style linesset terminal pngset xlabel 'Time - UT'set xdata timeset timefmt '%S'set format x '%H:%M:%S'set size 1.4,0.6set xrange [$t1:$t2]set yrange [0:1]set key outside belowplot '/tmp/nplot.$$' using (\$1):(\$5/2) title 'Anthorn',\'' using (\$1):(\$6/2) title 'Skelton',\'' using (\$1):(\$7*2) title 'Burlage',\'' using (\$1):(\$4) title 'Le Blanc',\'' using (\$1):(\$8*2) title 'Tavolara'" | gnuplot