Histogram¶
-
Histogram(edges, counts, args...; kvs...)¶ PlotComponentto draw a histogram. Ifedgesis of length N,countsmust be of length N - 1, becausecountsspecifies the height of the plot in the interval(edges[i], edges[i+1]).It might be more convenient to use the
plohistfunction instead.
Attributes¶
| drop_to_zero | Bool |
Example¶
edges = -10:11
counts = abs.(-10:10)
h = Histogram(edges, counts)
p = FramedPlot()
add(p, h)
