# Overlaying single value on a histogram

**URL:** https://discourse.julialang.org/t/overlaying-single-value-on-a-histogram/84393
**Category:** General Usage
**Tags:** statistics, distributed, makie, histogram
**Created:** [July 18, 2022, 9:48am UTC](https://discourse.julialang.org/t/overlaying-single-value-on-a-histogram/84393 "2022-07-18T09:48:25Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![AnshPatel7](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@AnshPatel7](https://discourse.julialang.org/u/AnshPatel7)
#### Post date: [July 18, 2022, 9:48am UTC](https://discourse.julialang.org/t/overlaying-single-value-on-a-histogram/84393/1 "2022-07-18T09:48:25Z")

</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 plot on top of the histograms. Is there any way to do this on Julia?

---

<div class="post-metadata">

### Author: ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)
#### Post date: [July 18, 2022, 11:39am UTC](https://discourse.julialang.org/t/overlaying-single-value-on-a-histogram/84393/2 "2022-07-18T11:39:54Z")

</div>

Probably `vlines` is what you want

---

<div class="post-metadata">

### Author: ![AnshPatel7](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@AnshPatel7](https://discourse.julialang.org/u/AnshPatel7)
#### Post date: [July 18, 2022, 1:48pm UTC](https://discourse.julialang.org/t/overlaying-single-value-on-a-histogram/84393/3 "2022-07-18T13:48:43Z")

</div>

Actually it worked with hist!() after the previous hist() plot, thanks anyways.
