Skip to content

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:

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()

Plot drawn by the example