Skip to content

Instantly share code, notes, and snippets.

@graysky2

graysky2/gnuplot_script

Last active Nov 12, 2016
Embed
What would you like to do?
#!/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