These observations are from Mathematica on Linux x86 (64 Bit).

With AxisLabel->{"A", "number"} the character A sometimes slips directly to the end of the abscissa in the context of Histogram, especially if the histogram has a few outliers far to the right. Even a few spaces before the abscissa label, like AxisLabel->{" A", "number"} do not improve it.

a histogram with outliers and unreasonable positioning of abscissa axis label

If you call Histogram for the same data with the option PlotRange->All, then there remains a reasonable distance between the end of the axis. Then, of course, all extreme outliers are displayed on the abscissa (or they are not visible after all, because such small frequencies are lost in the display).

The displayed data (extracted from the histogram as described in How to extract bar heights from histogram are:


so the few outliers right of A=145 cause the wrong AxisLabel-behaviour in this case. Is it a bug? How can one overcome it without stretching the histogram to display all the not really relevant outliers?

  • $\begingroup$ Is this behavior related to the ImageSize? $\endgroup$
    – Syed
    Dec 19, 2022 at 11:32
  • $\begingroup$ The histogram is created with ` Print[Histogram[... , AxesLabel -> {"A", "number"}, ImageSize -> {400}]]` $\endgroup$ Dec 19, 2022 at 20:46


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.