title: Distribution plot of an array
body: <p>I have a <code>numpy</code> array containing float values in [-10..10]. I would like to plot a distribution-graph of the values, like this (here it is done for a binomial random variable) :</p>
  
  <p><img src="https://i.stack.imgur.com/svwIJ.jpg" alt="enter image description here"></p>
  
  <p>For example I would like bars counting the number of elements in each interval [-10, -9.5], [-9.5, -9], ..., [9.5, 10].</p>
  
  <blockquote>
    <p>How to prepare such a distribution plot with Python?</p>
  </blockquote>