# # plot results for estimating pi using a Monte Carlo approach, # using three different methods for generating random numbers. # # to run in batch: # gnuplot histogram.plotin # to use interactively: # omit or comment out the following two lines, then from gnuplot: # load "histogram.plotin" set terminal png set output "histogram.png" set style data histogram set style fill solid set xlabel "Number of samples" set ylabel "Error in computation" set xtics rotate out # x-axis labels rotated plot "combined.dat" \ using 2:xticlabels(1) title "with C library function (seed 29)", \ "" using 3 title "with Java library class (seed 31)", \ "" using 4 title "with custom LCG function (seed 4321)"