# nile_commands.txt # # Usage: # gnuplot < nile_commands.txt # set term png set output 'nile_histogram.png' set xlabel '<--- Height of Nile at Maximum Flood --->' set ylabel '<--- Frequency --->' set title 'Yearly Nile Flood Height' set grid set timestamp set style fill solid unset key binwidth = 0.25 binstart = 5.0 set boxwidth 0.9*binwidth plot 'nile_data.txt' i 0 using (binwidth*(floor(($2-binstart)/binwidth)+0.5)+binstart):(1.0) smooth freq with boxes lc rgb 'red' quit