Skip to content

Instantly share code, notes, and snippets.



Last active Nov 12, 2016
What would you like to do?
set terminal png
set output "hist.png"
set boxwidth 50
set style fill solid
set style histogram
set style data histogram
set xlabel "CPU frequency in MHz"
set ylabel "Counts"
stats "data.txt"
bin(x,width)=width*floor(x/width) + bw/1.0
plot "data.txt" using (bin($1,bw)):(2.0) smooth freq with boxes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment