Automatic commit. Mon Jul 30 15:00:03 WST 2012
[matches/honours.git] / research / TCS / poll.sh
1 #!/bin/bash
2
3
4 movie=false
5
6 dt=0.5
7
8 if $movie; then
9         output_style="set term png size \"640, 480\"; set output sprintf(\"%d.png\", i)"
10 else
11         output_style=""
12 fi
13
14 sed -e "s:\$file:$1:g" plot.template > plot
15 gnuplot --persist -e "set term x11; t = 0; dt = $dt; load \"plot\"" 2>&1 >> /dev/null
16
17 if $movie; then
18         #frame_rate=$(python -c "print str(min(int(float($steps) / float($tMax)), 40))")
19         frame_rate=20
20         ffmpeg -r $frame_rate -b 1024k -i %d.png animate.mp4
21         mplayer animate.mp4
22 fi

UCC git Repository :: git.ucc.asn.au