title: How to change number of bins in matplotlib?
body: <p>I have the following code:</p>
  <pre><code>ax1.hist(true_time, bins=500, edgecolor=&quot;none&quot;)
  ax2.hist(true_time_2, bins=500, edgecolor=&quot;none&quot;)
  </code></pre>
  <p>I expected that it would give me two hists with the same number of bins, but it wouldn't:
  <a href="https://i.stack.imgur.com/Nkx3k.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Nkx3k.png" alt="enter image description here" /></a></p>
  <p>How to do it correctly?</p>