# # plot results for estimating pi using a Monte Carlo approach, # using three different methods for generating random numbers. # # to run in batch: # gnuplot < rng-accuracy.plotin # to use interactively: # omit or comment out the following two lines, then from gnuplot: # load "rng-accuracy.plotin" set terminal png set output "rng-accuracy.png" set style data linespoints set xlabel "Number of samples" set ylabel "Error in computation" plot \ "rng-accuracy-c-library.dat" title "with C library function (seed 29)", \ "rng-accuracy-java-library.dat" title "with Java library class (seed 31)", \ "rng-accuracy-lcg.dat" title "with custom LCG function (seed 4321)"