Using Matplotlib, I want to display a heavily long-tailed distribution, such as the one in the attached picture. Obviously, this figure is not very readable. What I want to achieve is as follows:
- get a histogram with 4 bars of equal width
- the ranges of the bars must be ‘0’, ‘1-5’, ‘6-25′, ’26-125’
- each bar has its range as a label under the bar
How can I achieve this? I keep getting stuck because Matplotlib makes the bars with a smaller range (e.g. ‘0’) incredibly narrow.
3