set title "" set xlabel "time" set ylabel "space" set xtics 1 set format x "$%g$" set format y "" set size 0.65,0.85 set output "plot.eps" set terminal epslatex plot [0:10][0:32] "plot.data" using 1:2 title "unoptimized" with lines, "plot.data" using 1:3 title "optimized" with lines 5 set output "plot.jpeg" set terminal jpeg replot set terminal pop