# \#makie-hist

**URL:** https://discourse.julialang.org/tag/makie-hist/1360.md

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

---

## [Makie.hist/hist! can't add a label for legend if bar\_labels is specified](https://discourse.julialang.org/t/makie-hist-hist-cant-add-a-label-for-legend-if-bar-labels-is-specified/99352)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 5\
**Last updated:** [May 26, 2023, 1:33pm UTC](https://discourse.julialang.org/t/makie-hist-hist-cant-add-a-label-for-legend-if-bar-labels-is-specified/99352 "2023-05-26T13:33:08Z")

</div>

It seems like the legend doesn’t work for all situations. This works: use GLMakie h1=hist(rand(16,),bins = 10, label="a", strokewidth = 1, strokecolor = :black, normalization = :probability) axislegend() And this wo…
