Moved gnuplot stuff into latex