CHistogram:SetBinWidth


The SetBinWidth method sets the bin width to a specified value.

Syntax

CHistogram:SetBinWidth( nBinWidth, nCount, nMinVal )

bullet.gif    nBinWidth is the width of each bin used for the histogram.

bullet.gif    nCount is the number of bins used in the histogram.

bullet.gif    nMinVal is the minimum data value used for the histogram.

Remarks

This method is useful not only when you want to force the bin to a particular value but also to specify an integer bin width when using integer data. When the data are all integer values and the bin width is not an integer value, aliasing causes adjacent histogram bins to alternate high and low, producing a comb-like appearance. If you do not call one of the SetBin methods, Mira defaults to the SetBinAuto option. The maximum histogram value is calculated using the specified values of nMinVal, nCount, and nBinWidth.

Related Topics

CHistogram Class, SetBinCount, SetBinAuto


Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics, Inc. All Rights Reserved.