Automatic commit. Wed Aug 1 13:00:33 WST 2012
[matches/honours.git] / research / TCS / plot.sh
1 #!/bin/bash
2
3 # Script to plot .dat files
4
5 title=$(grep "# Title: " $0 | sed 's/# Title: //g')
6 labels=$(grep "# Format: " $0 | sed 's/# Format: //g')
7
8 x=1
9 ylabel="Counts"
10 toplot="2 3 5"
11 style="l"
12
13 xlabel=$(echo $labels | tr " " "\n" | head --lines=$x | tail --lines=1)
14 command="set title \"$title\""
15 command="$command; set xlabel \"$xlabel\""
16 command="$command; set ylabel \"$ylabel\""
17 command="$command; plot \"$0\""
18
19 for y in toplot; do
20         command="$command 
21
22
23
24

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