set term gif set xlabel "x" set ylabel "Prob(N,x)" set output 'binomial100.gif' set title "Probability of choosing heads x times out of 100 trials" plot "binomial100.txt" using 1:2 title "Prob(100,x)" with lines set output 'binomial1000.gif' set title "Probability of choosing heads x times out of 1000 trials" plot "binomial1000.txt" using 1:2 title "Prob(1000,x)" with lines