X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=sidebyside;f=research%2FTCS%2Fplot.sh;fp=research%2FTCS%2Fplot.sh;h=2bc0c7893ac174c43580414a1d053d343adab633;hb=70a96cca12cb006506461d26cd112bab179fe74c;hp=c3d0fea38f2ae3df9d4d6710b2b7ee1f58507398;hpb=8caf60af39689a3546074f0c68d14c3a2e28191e;p=matches%2Fhonours.git diff --git a/research/TCS/plot.sh b/research/TCS/plot.sh index c3d0fea3..2bc0c789 100755 --- a/research/TCS/plot.sh +++ b/research/TCS/plot.sh @@ -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)