Histogram¶
-
Histogram
(edges, counts, args...; kvs...)¶ PlotComponent
to draw a histogram. Ifedges
is of length N,counts
must be of length N - 1, becausecounts
specifies the height of the plot in the interval(edges[i], edges[i+1])
.It might be more convenient to use the
plohist
function instead.
Attributes¶
drop_to_zero | Bool |
Example¶
edges = -10:11
counts = abs.(-10:10)
h = Histogram(edges, counts)
p = FramedPlot()
add(p, h)