title: display a histogram with very non-uniform bin widths
body: <p>Here is the histogram
  <a href="https://i.stack.imgur.com/eUr1u.png" rel="noreferrer"><img src="https://i.stack.imgur.com/eUr1u.png" alt="enter image description here"></a></p>
  
  <p>To generate this plot, I did:</p>
  
  <pre><code>bins = np.array([0.03, 0.3, 2, 100])
  plt.hist(m, bins = bins, weights=np.zeros_like(m) + 1. / m.size)
  </code></pre>
  
  <p>However, as you noticed, I want to plot the histogram of the relative frequency of each data point with only 3 bins that have different sizes:</p>
  
  <p>bin1 = 0.03 -> 0.3</p>
  
  <p>bin2 = 0.3 -> 2</p>
  
  <p>bin3 = 2 -> 100</p>
  
  <p>The histogram looks ugly since the size of the last bin is extremely large relative to the other bins. How can I fix the histogram? I want to change the width of the bins but I do not want to change the range of each bin. </p>