# Makie xrug/ yrug scatter plot

**URL:** <https://discourse.julialang.org/t/makie-xrug-yrug-scatter-plot/66009>\
**Category:** Tooling\
**Tags:** plotting, makie\
**Created:** [August 8, 2021, 6:38am UTC](https://discourse.julialang.org/t/makie-xrug-yrug-scatter-plot/66009 "2021-08-08T06:38:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Humphrey\_Lee](https://avatars.discourse-cdn.com/v4/letter/h/a88e4f/32.png) [@Humphrey\_Lee](https://discourse.julialang.org/u/Humphrey_Lee)\
**Post date:** [August 8, 2021, 6:38am UTC](https://discourse.julialang.org/t/makie-xrug-yrug-scatter-plot/66009/1 "2021-08-08T06:38:54Z")

</div>

I tried to reproduce Gadfly’s xrug/yrug in Makie as in the example [xrug/yrug](http://gadflyjl.org/stable/gallery/guides/#%5BGuide.xrug%5D(@ref),-%5BGuide.yrug%5D(@ref)). Appreciate your help. Thanks.

---

<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:** [August 8, 2021, 8:10am UTC](https://discourse.julialang.org/t/makie-xrug-yrug-scatter-plot/66009/2 "2021-08-08T08:10:31Z")

</div>

You can currently use the `vlines!` function for that, which only works together with `Axis`.

```julia
data = randn(2, 20)

fig, ax, s = scatter(data)
vlines!(ax, data[1, :], ymax = 0.025)
fig

```

 ![grafik](https://global.discourse-cdn.com/julialang/original/3X/9/8/988098ffe119134923569c611e2542c02227b6e3.png)

---

<div class="post-metadata">

**Author:** ![Humphrey\_Lee](https://avatars.discourse-cdn.com/v4/letter/h/a88e4f/32.png) [@Humphrey\_Lee](https://discourse.julialang.org/u/Humphrey_Lee)\
**Post date:** [August 8, 2021, 11:32pm UTC](https://discourse.julialang.org/t/makie-xrug-yrug-scatter-plot/66009/3 "2021-08-08T23:32:34Z")

</div>

Yes, this is exactly fit my requirement. Thanks.
