I would like to ask the very same question as Plotting histogram from a list of bin boundaries and counts, because I do not find it sufficiently answered.
"If I use HistogramList (in mathematica) to create list of bin boundaries and bin counts from my data, can I use this list to plot histogram? I want to add the counts from various datasets before plotting my final histogram. So, I would like an answer to my question."
Is it possible to precalculate the bin counts and directly use them in the Histogram function?
In the answer to the cited and closed question a reference is made to the help file, where it is proposed that using the BarChart[Last[HistogramList[data]]] yields the same result as Histogram[data], which clearly isn't the case because the horizontal axis labeling is missing.







myhistogram2[hl_, options_] := ListLinePlot[{{#[[1]], 0}, {#[[1]], #[[2]]}} & /@ Transpose@{MovingAverage[hl[[1]], 2], Table[ Total[hl[[2, ;; , i]]] , {i, 1, Length@(hl[[2, 1, ;;]])}] }, PlotStyle -> Orange, options]But it seems there is no native solution to it. Thanks for the quick reply!
– ango4 Jul 28 '23 at 15:31