Commit cb2d41d5 authored by Sylvain Schmitz's avatar Sylvain Schmitz

improve readability

parent 6bbc6058
......@@ -31,7 +31,7 @@ do
count=`xmlstarlet sel -N xqx="http://www.w3.org/2005/XQueryX" -t -c "count(//xpath[(ast//xqx:xpathAxis)])" $file`
total=$((count + total))
done
percent=`echo "scale=2; 100*$value/$total" | bc`
percent=`echo "scale=1; 100*$value/$total" | bc`
printf "& $percent\\%% "
# no axis step
......@@ -47,7 +47,7 @@ do
count=`xmlstarlet sel -N xqx="http://www.w3.org/2005/XQueryX" -t -c "count(//xpath[not(ast//xqx:xpathAxis)])" $file`
total=$((count + total))
done
percent=`echo "scale=2; 100*$value/$total" | bc`
percent=`echo "scale=1; 100*$value/$total" | bc`
printf "& $percent\\%%"
printf '\\\\\n'
printf '\\bottomrule\n'
......
......@@ -43,7 +43,7 @@ do
value=$((count + value))
done
array[$i]=$value
printf "& ${array[i]} "
printf "& %'.0f " ${array[i]}
done
value=0
for file in $@
......@@ -52,7 +52,7 @@ do
value=$((count + value))
done
array[$i]=$value
printf "& $value"
printf "& %'.0f" $value
printf '\\\\\n'
# first row: accepted
......@@ -65,7 +65,7 @@ do
count=`xmlstarlet sel -N xqx="http://www.w3.org/2005/XQueryX" -t -c "count(//xpath[(ast[@size >= $i and @size < ($i+$step)]) and (schemas/validation[($full) and @valid=\"yes\"])])" $file`
value=$((count + value))
done
percent=`echo "scale=2; 100*$value/${array[i]}" | bc`
percent=`echo "scale=1; 100*$value/${array[i]}" | bc`
printf "& $percent\\%% "
done
value=0
......@@ -74,7 +74,7 @@ do
count=`xmlstarlet sel -N xqx="http://www.w3.org/2005/XQueryX" -t -c "count(//xpath[(ast[@size >= $i]) and (schemas/validation[($full) and @valid=\"yes\"])])" $file`
value=$((count + value))
done
percent=`echo "scale=2; 100*$value/${array[i]}" | bc`
percent=`echo "scale=1; 100*$value/${array[i]}" | bc`
printf "& $percent\\%% "
printf '\\\\\n'
printf '\\bottomrule\n'
......
......@@ -17,7 +17,7 @@
10cm,6.0cm}]
set yrange [0:100]
set decimal locale
set format y "%'g"
set format y '%.0f\%%'
set style fill solid 1 border rgb "#ffffff"
set ylabel "percentage of queries"
set xtics nomirror rotate by -45
......@@ -40,7 +40,7 @@
10cm,6.0cm}]
set yrange [0:100]
set decimal locale
set format y "%'g"
set format y '%.0f\%%'
set style fill solid 1.00 border rgb "#ffffff"
set ylabel "percentage of queries"
set xtics nomirror rotate by -45
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment