CHistogram:GetBinCount
The GetBinCount method returns the actual bin count used by the histogram Calc method. This method is useful after setting the binning strategy with the SetBinWidth or SetBinAuto method since, in both cases, the bin count is calculated from other parameters.
nCount = CHistogram:GetBinCount( )
The following script retrieves the bin count for use in setting up an x axis for plotting the histogram.
|
-- create a Histogram object |
|
-- create this number of random deviates |
|
|
|
|
|
-- plot the histogram using default settings |
|
|