title: Normalizing histogram bins in gnuplot
body: <p>I'm trying to plot a histogram whose bins are normalized by the number of elements in the bin. </p>
  
  <p>I'm using the following </p>
  
  <pre><code>binwidth=5
  bin(x,width)=width*floor(x/width) + binwidth/2.0
  plot 'file' using (bin($2, binwidth)):($4) smooth freq with boxes
  </code></pre>
  
  <p>to get a basic histogram, but I want the value of each bin to be divided by the size of the bin. How can I go about this in gnuplot, or using external tools if necessary?</p>