BinCount(count)
Source¶
Bins of a HistogramChart given by their number, of the same width from the smallest to the largest value.
Added in version 0.1.0
Parameters:
-
count(int)The number of bins, at least 1.
Raises:
-
InvalidTypeErrorWhen a setting is not of the type its annotation names.
-
InvalidCountErrorWhen the count is lower than 1.
Examples:
import numdaplot as ndp
prices = ndp.Array.from_list([12.0, 15.5, 14.0, 17.0, 13.5, 16.0, 14.5, 15.0])
chart = ndp.HistogramChart(bins=ndp.BinCount(4))
plot = ndp.Plot.histogram(prices, chart)
plot.show()