unequal bin width for multiple data sets in hist when x axis is under log scale.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

unequal bin width for multiple data sets in hist when x axis is under log scale.

aaccaa
This post has NOT been accepted by the mailing list yet.
As the following code, I get the figure shown below. The real width for each bin is actually equal. However the bins show unequal under the log xscale. I don't know if it is a bug of pyplot.hist. Otherwise may I know if there is a solution to make bin width equal? Thanks.

d = [1,10,100,1000, 10000]
pyplot.xscale('log')
n, bins, patch = pyplot.hist([d, d, d,], bins=d)