update gnuplot script, now can pass shell variable to gnuplot, will make later work much easier