#!/bin/bash

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

gnuplot<<EOF
    set grid

    #---PNG---
    set term pngcairo size 800,600
    FType = '.png'

    #---singleGraph---
    set output 'alphaAir'.FType

    set xlabel 'x'
    set ylabel '{/Symbol a}_{air}'
    plot '../postProcessing/graph/3/line.csv' u 1:2 w l t "current", \
         'line.csv'                           u 1:2 w l t "reference"

EOF

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