<p>In addition to what was stated, performing this on pandas dataframes works as well:</p>

<pre><code>some_column_hist = dataframe['some_column'].plot(bins=np.logspace(-2, np.log10(max_value), 100), kind='hist', loglog=True, xlim=(0,max_value))
</code></pre>

<p>I would caution, that there may be an issue with normalizing the bins. Each bin is larger than the previous one, and therefore must be divided by it's size to normalize the frequencies before plotting, and it seems that neither my solution, nor HYRY's solution accounts for this.</p>

<p>Source: <a href="https://arxiv.org/pdf/cond-mat/0412004.pdf" rel="nofollow noreferrer">https://arxiv.org/pdf/cond-mat/0412004.pdf</a></p>
How to have logarithmic bins in a Python histogram
<p>As far as I know the option Log=True in the histogram function only refers to the y-axis.</p>

<pre><code>P.hist(d,bins=50,log=True,alpha=0.5,color='b',histtype='step')
</code></pre>

<p>I need the bins to be equally spaced in log10. Is there something that can do this?</p>