# Gnuplot # convergence of E reset set macros #set term png enhanced font arial 10 size 400,600 set term png enhanced size 400,400 fontscale 0.8 set xlabel "N" set key left bottom Left reverse set xrange [5 : 2**46] #set yrange [* : *] set logscale x set logscale y set grid # reset index of default line styles colors="black blue green dark-violet red yellow brown" set for [i=1:words(colors)] linetype i lw 2 lc rgb word(colors, i) #ref=3.14159265358979323846264 #set title sprintf("Convergence of PI") set label 1 sprintf("Convergence of PI") at 1e8,5e-4 left set output sprintf('err_pi.png') plot "PI_32_err.dat" using 2:($2 <= 2**19 ? abs($4) : 1/0) title "32-bit" with lp,\ "PI_64_err.dat" using 2:(abs($4)) title "64-bit" with lp,\ "PI_80_err.dat" using 2:(abs($4)) title "80-bit" with lp