Skip to content

Instantly share code, notes, and snippets.

@graysky2
Last active November 12, 2016 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save graysky2/52182a5af0b13827bd52fe0fd353e4c1 to your computer and use it in GitHub Desktop.
Save graysky2/52182a5af0b13827bd52fe0fd353e4c1 to your computer and use it in GitHub Desktop.
#!/usr/bin/gnuplot
set terminal png
set output "hist.png"
set boxwidth 50
set style fill solid
set style histogram
set style data histogram
bw=1
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