#!/bin/bash

if ! which gnuplot > /dev/null 2>&1
then
    echo 'gnuplot not found - skipping graph creation' >&2
    exit 1
fi

gnuplot<<EOF
    set term pngcairo
    set output 'executionTime.png'

    set xlabel 'Time (s)'
    set ylabel 'Execution time (s)'

    plot 'squareBend/logs/executionTime_0' w lp t 'Execution time'
EOF

#------------------------------------------------------------------------------
