title: Matplotlib histogram bar width
body: <p>I am using matplotlib histogram histtype='bar' to plot four datasets together. What it automatically does is that it changes the width of the bar of each dataset relative to the size of the dataset. I want to have equal bar width for all four datasets.</p>
  
  <pre><code>[n, bins, patches = plt.hist(
      [np.sort(x2), np.sort(x3), np.sort(x4), np.sort(x5)],
      bins=np.logspace(np.log10(8e-8), np.log10(1), 7),
      histtype='bar', 
      weights=[w2,w3,w4,w5],
      label=[
          '$\Delta {{\chi}^2} &lt;40$',
          '$u_0 &lt; 0.045$',
          '${s}_{fitted} &gt;5$',
          'Multi-peaked'
      ]
  )][1]
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/6RHL9.png" alt="My current plot"></p>