set xlabel "Matrix size" font "giant,13"
set format y "%.3g"
set ylabel "GFlop/s" font "giant,13"
set title "MAGMA v0.1  -  Performance on GTX280" font "giant,14"
set key left top
set mytics 5
set format x "%g,000"
set yrange[0:310]
set grid

#plot 'magma-performance' using 1 title "magma_sgetrf" with lines lw 2, 'magma-performance' using 2 title " magma_sgeqrf" with lines lw 2, 'magma-performance' using 3 title "magma_spotrf" with lines lw 2

#plot 'magma-performance' using 4 title "magma_sgetrf_gpu" with lines lw 2, 'magma-performance' using 5 title " magma_sgeqrf_gpu" with lines lw 2, 'magma-performance' using 6 title "magma_spotrf_gpu" with lines lw 2

set yrange[0:80]
#plot 'magma-performance' using 7 title "magma_dgetrf" with lines lw 2, 'magma-performance' using 8 title " magma_dgeqrf" with lines lw 2, 'magma-performance' using 9 title "magma_dpotrf" with lines lw 2

plot 'magma-performance' using 10 title "magma_dgetrf_gpu" with lines lw 2, 'magma-performance' using 11 title " magma_dgeqrf_gpu" with lines lw 2, 'magma-performance' using 12 title "magma_dpotrf_gpu" with lines lw 2

#set size 0.7,0.7
set size 0.6,0.6

# plot with
# gnuplot -persist residuals
#set terminal postscript eps color
#set out 'o.eps'
#set terminal jpeg
#set out 'o.jpeg'
#set terminal gif
#set out 'o.gif'
set terminal postscript color
set out 'o.ps'
replot
set term pop
