#!/bin/bash function input_data() { cat <gnuplot_data.$$ cat <gnuplot_script.$$ plot "gnuplot_data.$$" title "$switch" EOF gnuplot gnuplot_script.$$ - } if [ ! -f interpolate_test ]; then g++ -I ../math -o interpolate_test interpolate_test.cpp fi transform linear transform cubic transform cosine transform hermite rm -f gnuplot_data.$$ gnuplot_script.$$