# plot convergence data set term x11 0 set data s l set xrange [1:1000] set yrange [1:1000] set log xy set xlabel "matrix size N" set ylabel "# iterations to err < 1.e-10" set key right bottom plot "conv-gmres2.dat" u 1:2 title "GMRES(2)", \ "conv-gmres5.dat" u 1:2 title "GMRES(5)", \ "conv-gmres10.dat" u 1:2 title "GMRES(10)", \ "conv-gmres10.dat" u 1:($1**2) title "N^2", \ "conv-rich.dat" u 1:2 title "2cd Order Richardson/GMRES" ,\ "conv-rich.dat" u 1:(2*$1) title "2 N" set terminal postscript eps enhanced color solid 22 set output "convergence.eps" replot set terminal png medium set output "convergence.png" replot