Commit before breaking everything
[matches/honours.git] / research / TCS / plot.sh
index c3d0fea..2bc0c78 100755 (executable)
@@ -21,7 +21,7 @@ filename=$(echo $1 | sed -e "s:$dir::g")
 title="$filename\n$title"
 
 xlabel=$(echo $labels | tr " " "\n" | head --lines=$x | tail --lines=1)
-if [ $2 != "" ]; then
+if [ "$2" != "" ]; then
        if [ $2 == $1 ]; then
                exit 1
        fi
@@ -34,6 +34,7 @@ command="$command; set title \"$title\""
 command="$command; set xlabel \"$xlabel\""
 command="$command; set ylabel \"$ylabel\""
 command="$command; set key outside right"
+command="$command; set yrange [-0.1:1]"
 plot="plot "
 for y in $toplot; do
        lab=$(echo $labels | tr " " "\n" | head --lines=$y | tail --lines=1)

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