2010-03-11

Gnuplot Histogram

If you want to bin data in Gnuplot, something like this should work (taken from a mailing list):

bw = 5   # substitute what you want 
bin(x,width)=width*floor(x/width) 
plot 'data' using (bin($1,bw)):(1.0) smooth freq with boxes

No comments:

Post a Comment