gnuplot example (calculating on the fly)