MATLAB: Does IMHIST automatically zoom the y-axis in the Image Processing Toolbox 6.4 (R2009b)

Image Processing Toolbox

In the documentation example for IMHIST located here:
<http://www.mathworks.com/access/helpdesk/help/toolbox/images/imhist.html>
the y-axis is automatically being zoomed in. Some x-values have a corresponding y-value of more than 1600 (which is the maximum y-value), so they are not being displayed.

Best Answer

This change has been incorporated into the documentation in Release 2011a (R2011a). For previous releases, read below for any additional information:
This is the intended behavior. The maximum y-value is set to 2.5 times the variance of the y-values. This prevents a few large y-values from drowning out the rest of the histogram, at the expense of not being able to see the whole plot.