How to change number of bins in matplotlib?
<p>I have the following code:</p>

<pre><code>ax1.hist(true_time, bins=500, edgecolor="none")
ax2.hist(true_time_2, bins=500, edgecolor="none")
</code></pre>

<p>I expected that it would give me two hists with the same number of bins, but it wouldn't:
<a href="http://i.stack.imgur.com/Nkx3k.png" rel="nofollow"><img src="http://i.stack.imgur.com/Nkx3k.png" alt="enter image description here"></a></p>

<p>How to do it correctly?</p>

<p>If you have some distant outlier in true_time, it may be that the bins were made just really really big to include it.</p>

python matplotlib bins