pyplot.hist()
documentation specifies that when setting a range for a histogram \"lower and upper outliers are ignored\".
Is it possible to make th
No. Looking at matplotlib.axes.Axes.hist
and the direct use of numpy.histogram
I'm fairly confident in saying that there is no smarter solution than using clip (other than extending the bins that you histogram with).
I'd encourage you to look at the source of matplotlib.axes.Axes.hist
(it's just Python code, though admittedly hist is slightly more complex than most of the Axes methods) - it is the best way to verify this kind of question.
HTH