# \#histogram

**URL:** https://discourse.julialang.org/tag/histogram/933.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [How to label multiple histograms in AlgebraOfGraphics](https://discourse.julialang.org/t/how-to-label-multiple-histograms-in-algebraofgraphics/127429)

<div class="topic-metadata">

**Author:** [@Abhro](https://discourse.julialang.org/u/Abhro)\
**Replies:** 5\
**Last updated:** [April 3, 2025, 6:35am UTC](https://discourse.julialang.org/t/how-to-label-multiple-histograms-in-algebraofgraphics/127429 "2025-04-03T06:35:47Z")

</div>

I have a dataset where each column is a list of occurrences. I would like to plot three columns as three histograms within one figure, but I cannot wrap my head around the AlgebraOfGraphics idioms. Within Makie.jl, I wo…

---

## [Density and histograms](https://discourse.julialang.org/t/density-and-histograms/115394)

<div class="topic-metadata">

**Author:** [@LoneWolf1304](https://discourse.julialang.org/u/LoneWolf1304)\
**Replies:** 5\
**Last updated:** [June 10, 2024, 3:49pm UTC](https://discourse.julialang.org/t/density-and-histograms/115394 "2024-06-10T15:49:55Z")

</div>

I am using Julia for plotting the density of a data using density(). I wanted to know if there is any way to obtain the data points of the density(), like the values that is plotted by density(). I can obtain the histogr…

---

## [Getting bin values from histogram](https://discourse.julialang.org/t/getting-bin-values-from-histogram/114985)

<div class="topic-metadata">

**Author:** [@bsuwal](https://discourse.julialang.org/u/bsuwal)\
**Replies:** 1\
**Last updated:** [May 30, 2024, 9:00pm UTC](https://discourse.julialang.org/t/getting-bin-values-from-histogram/114985 "2024-05-30T21:00:27Z")

</div>

I wish to get the values of the bins in a histogram I make using Plots.jl. For example, if I use the following sample code using Plots data = randn(100) histogram(data, normalize=:probability) I wish to learn what the…

---

## [Histogram height](https://discourse.julialang.org/t/histogram-height/111699)

<div class="topic-metadata">

**Author:** [@LoneWolf1304](https://discourse.julialang.org/u/LoneWolf1304)\
**Replies:** 1\
**Last updated:** [March 16, 2024, 4:08pm UTC](https://discourse.julialang.org/t/histogram-height/111699 "2024-03-16T16:08:09Z")

</div>

In python matplotlib, the hist() returns an array containing the bin heights of the histogram. How can I do this in julia? as far as i know, the corresponding histogram() function doesn’t return anything. What is the qui…

---

## [Plot histogram with edge color in Plots.jl](https://discourse.julialang.org/t/plot-histogram-with-edge-color-in-plots-jl/83119)

<div class="topic-metadata">

**Author:** [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Replies:** 3\
**Last updated:** [October 23, 2023, 9:53pm UTC](https://discourse.julialang.org/t/plot-histogram-with-edge-color-in-plots-jl/83119 "2023-10-23T21:53:45Z")

</div>

Can one plot a histogram in Plots.jl where only the outer line is plotted, like in this picture? In PyPlot this is set be edgecolor but I did not find a way to do this in Plots with gr.

---

## [ForwardDiff through StatsBase's fit(Histogram, ...)](https://discourse.julialang.org/t/forwarddiff-through-statsbases-fit-histogram/97892)

<div class="topic-metadata">

**Author:** [@tom-plaa](https://discourse.julialang.org/u/tom-plaa)\
**Replies:** 0\
**Last updated:** [April 25, 2023, 11:25am UTC](https://discourse.julialang.org/t/forwarddiff-through-statsbases-fit-histogram/97892 "2023-04-25T11:25:23Z")

</div>

I have code that is trying to autodifferentiate through the histogram fitting of StatsBase using ForwardDiff, any tips on how to get this to work? I’m hitting TwicePrecision and it’s trying to convert to Float64. Here’s…

---

## [Overlaying single value on a histogram](https://discourse.julialang.org/t/overlaying-single-value-on-a-histogram/84393)

<div class="topic-metadata">

**Author:** [@AnshPatel7](https://discourse.julialang.org/u/AnshPatel7)\
**Replies:** 2\
**Last updated:** [July 18, 2022, 1:48pm UTC](https://discourse.julialang.org/t/overlaying-single-value-on-a-histogram/84393 "2022-07-18T13:48:43Z")

</div>

Hi, I’m using the hist function in the CairoMakie package to create a layout of histograms. The histograms show the distribution of means from bootstrapping. I also have the theoretical mean values which I would like to…

---

## [How to draw histogram of a sine?](https://discourse.julialang.org/t/how-to-draw-histogram-of-a-sine/81361)

<div class="topic-metadata">

**Author:** [@youxiuqingnianyyy](https://discourse.julialang.org/u/youxiuqingnianyyy)\
**Replies:** 2\
**Last updated:** [May 20, 2022, 1:32pm UTC](https://discourse.julialang.org/t/how-to-draw-histogram-of-a-sine/81361 "2022-05-20T13:32:10Z")

</div>

I want to draw the figure like this in Julia Plots. Is there any package I could use? Need suggestion.

---

## [How do I make an histogram with no vertical edges between bars in Plots.jl?](https://discourse.julialang.org/t/how-do-i-make-an-histogram-with-no-vertical-edges-between-bars-in-plots-jl/80671)

<div class="topic-metadata">

**Author:** [@ultrapoci](https://discourse.julialang.org/u/ultrapoci)\
**Replies:** 2\
**Last updated:** [May 7, 2022, 9:12pm UTC](https://discourse.julialang.org/t/how-do-i-make-an-histogram-with-no-vertical-edges-between-bars-in-plots-jl/80671 "2022-05-07T21:12:49Z")

</div>

I would like to make an histogram like this one: but I don’t know how to do it. I can set the fillalpha option to zero to have empty bars, but the vertical edges remain: And if I set linecolor to :transparent, the…

---

## [BenchmarkTools @benchmark beautiful histogram reuse](https://discourse.julialang.org/t/benchmarktools-benchmark-beautiful-histogram-reuse/75053)

<div class="topic-metadata">

**Author:** [@Marcell\_Havlik](https://discourse.julialang.org/u/Marcell_Havlik)\
**Replies:** 12\
**Last updated:** [March 7, 2022, 8:59pm UTC](https://discourse.julialang.org/t/benchmarktools-benchmark-beautiful-histogram-reuse/75053 "2022-03-07T20:59:36Z")

</div>

Dear Julianners, I saw the beautiful histogram unicode plots of BenchmarkTools of @benchmark BenchmarkTools.Trial: 10000 samples with 968 evaulations took a median time of 90.902 ns (0.00% GC) Time (mean ± σ): 94.…

---

## [Y-axis scale in histogram](https://discourse.julialang.org/t/y-axis-scale-in-histogram/76819)

<div class="topic-metadata">

**Author:** [@met-j](https://discourse.julialang.org/u/met-j)\
**Replies:** 3\
**Last updated:** [February 20, 2022, 9:44pm UTC](https://discourse.julialang.org/t/y-axis-scale-in-histogram/76819 "2022-02-20T21:44:13Z")

</div>

How can I scale the y axis ticks in a histogram? Is there a way to access the counts in a histogram from dispatching the plot function with st=:hist? In my case I have counts in between 1 000 and a few 10 000s. I woul…

---

## [Categorical histogram](https://discourse.julialang.org/t/categorical-histogram/76323)

<div class="topic-metadata">

**Author:** [@juliauser](https://discourse.julialang.org/u/juliauser)\
**Replies:** 0\
**Last updated:** [February 13, 2022, 12:32am UTC](https://discourse.julialang.org/t/categorical-histogram/76323 "2022-02-13T00:32:19Z")

</div>

How can I set the order of the groups? Julia tends to reshuffle them randomly. And how can I add a second row with a bracket and its own name to show that G1 and G2 are part of a subgroup called Gprime? ctg = repeat(\["C…
