integrated gnuplot to generate jpeg plots