Last active
November 12, 2016 21:57
-
-
Save graysky2/52182a5af0b13827bd52fe0fd353e4c1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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