CHistogram:GetBinWidth
The GetBinWidth method returns the actual bin width used by the histogram Calc method. This method is useful after setting the binning strategy with the SetBinCount or SetBinAuto method since, in both cases, the bin width is calculated from other parameters.
nWidth = CHistogram:GetBinWidth( )
nWidth is the width of bins used in the histogram.
The following script retrieves the bin width for use in setting up an x axis for plotting the histogram.
|
-- create a Histogram object |
|
-- create this number of random deviates |
|
|
|
-- separate the 3 parameters for clarity |
|
|
|
|
|
-- create a series for the histgram x axis |
|
-- plot the histogram using default settings |
|
|
CHistogram Class, SetBinWidth, series
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.