# faithful_commands.txt # # Usage: # gnuplot < faithful_commands.txt # set term png set output "faithful_histogram.png" set xlabel "<--- Duration --->" set ylabel "<--- Frequency --->" set title "Old Faithful Eruption Durations in Minutes" set grid set style fill solid unset key binwidth = 5.0 binstart = 40.0 set boxwidth 0.9*binwidth plot "faithful_data.txt" i 0 using (binwidth*(floor(($2-binstart)/binwidth)+0.5)+binstart):(1.0) smooth freq with boxes lc rgb "red" quit