Subversion Repositories svnkaklik

Compare Revisions

Ignore whitespace Rev 265 → Rev 266

/programy/C/SID/nplot1
0,0 → 1,30
#!/bin/bash
 
file=$1
t1=$2
t2=$3
 
[ "$t1" = "" ] && t1=0
[ "$t2" = "" ] && t2=86400
 
awk -v "t1=$t1" -v "t2=$t2" '{
$1 %= 86400
if( $1 < t1) next
if( $1 > t2) exit
print
}' $file > /tmp/nplot.$$
 
echo "
set data style lines
set terminal png color
set xlabel 'UT Seconds'
set size 1.4,0.6
set xrange [$t1:$t2]
set key outside below
plot '/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
/programy/C/SID/nplot2
0,0 → 1,34
#!/bin/bash
 
file=$1
t1=$2
t2=$3
 
[ "$t1" = "" ] && t1=0
[ "$t2" = "" ] && t2=86400
 
awk -v "t1=$t1" -v "t2=$t2" '{
$1 %= 86400
if( $1 < t1) next
if( $1 > t2) exit
print
}' $file > /tmp/nplot.$$
 
echo "
set data style lines
set terminal png color
set xlabel 'Time - UT'
set xdata time
set timefmt '%S'
set format x '%H:%M:%S'
set size 1.4,0.6
set xrange [$t1:$t2]
set key outside below
plot '/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