#!/bin/bash DATA=WS/chrono.indoor COMP=/dev/shm/comp.indoor LAST=/dev/shm/last.indoor IMAGE="inside-timing.png" awk -f timingplot.awk < $DATA > $COMP awk -f timinglast.awk < $DATA > $LAST gnuplot << __EOC__ set term png size 3000,720 set output "${IMAGE}" # set key below set yrange [ 0.0 : 960.0 ] set grid front set xtics 50 set xlabel "This is the frame number" set ytics 60 set title "Average tracing time for the Indoor Vidz" plot \ "$DATA" using 1:2 with dots title "Samples" lt rgb "#808080" , \ "$COMP" using 1:2 with lines title "Average" lt rgb "black" , \ "$COMP" using 1:3 with lines title "Minimum" lt rgb "blue" , \ "$COMP" using 1:4 with lines title "Maximum" lt rgb "red" , \ "$LAST" using 1:2 with lines title "Last" lt rgb "#00A000" \ __EOC__ nbs=$(wc -l $DATA | awk '{print $1}') printf "timings on %.3f runs\n" $(echo "$nbs / 2000" | bc -l) rm -v $COMP $LAST display "${IMAGE}" &