# Stem plot in Makie.jl

**URL:** <https://discourse.julialang.org/t/stem-plot-in-makie-jl/54234>\
**Category:** Tooling\
**Tags:** makie\
**Created:** [January 29, 2021, 10:22pm UTC](https://discourse.julialang.org/t/stem-plot-in-makie-jl/54234 "2021-01-29T22:22:13Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheLateKronos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thelatekronos/32/12824_2.png) [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Post date:** [January 29, 2021, 10:22pm UTC](https://discourse.julialang.org/t/stem-plot-in-makie-jl/54234/1 "2021-01-29T22:22:13Z")

</div>

Is there current a function that creates stem plots in Makie.jl, or would I have to DIY it? In case it is unknown, it is simply a line from x=0 to the y value with a marker at the end, and it is good for representing a discrete signal, e.g. in the context for fourier transformations.

If there isn’t, i could put my upcoming DIY in a PR, but nobody should expect it to be elegant 😆

---

<div class="post-metadata">

**Author:** ![Uroc327](https://avatars.discourse-cdn.com/v4/letter/u/eb8c5e/32.png) [@Uroc327](https://discourse.julialang.org/u/Uroc327)\
**Post date:** [March 15, 2021, 1:21pm UTC](https://discourse.julialang.org/t/stem-plot-in-makie-jl/54234/2 "2021-03-15T13:21:26Z")

</div>

There is now. It’s called [`stem`](https://makie.juliaplots.org/stable/plotting_functions.html#stem).

---

<div class="post-metadata">

**Author:** ![TheLateKronos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thelatekronos/32/12824_2.png) [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Post date:** [March 15, 2021, 2:42pm UTC](https://discourse.julialang.org/t/stem-plot-in-makie-jl/54234/3 "2021-03-15T14:42:54Z")

</div>

It was me who created [this issue](https://github.com/JuliaPlots/Makie.jl/issues/851). But yes, the issue is resolved 😃 , thanks a lot to @jkrumbiegel !

---

<div class="post-metadata">

**Author:** ![Uroc327](https://avatars.discourse-cdn.com/v4/letter/u/eb8c5e/32.png) [@Uroc327](https://discourse.julialang.org/u/Uroc327)\
**Post date:** [March 15, 2021, 2:53pm UTC](https://discourse.julialang.org/t/stem-plot-in-makie-jl/54234/4 "2021-03-15T14:53:45Z")

</div>

Oh, sorry 😃 I knew I saw your name somewhere, but just couldn’t figure out where…

---

<div class="post-metadata">

**Author:** ![TheLateKronos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thelatekronos/32/12824_2.png) [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Post date:** [March 15, 2021, 3:04pm UTC](https://discourse.julialang.org/t/stem-plot-in-makie-jl/54234/5 "2021-03-15T15:04:36Z")

</div>

No problem, I would not expect everyone to cross-refecence names 🙂 Good job on calling it out for anyone else looking for this, and for adding the practical link, and for pinging me to update Makie (I have been anticipating this feauture, but have not seen the new release get tagged).

---

<div class="post-metadata">

**Author:** ![Uroc327](https://avatars.discourse-cdn.com/v4/letter/u/eb8c5e/32.png) [@Uroc327](https://discourse.julialang.org/u/Uroc327)\
**Post date:** [March 15, 2021, 3:13pm UTC](https://discourse.julialang.org/t/stem-plot-in-makie-jl/54234/6 "2021-03-15T15:13:09Z")

</div>

I don’t know about Makie, but AbstractPlotting got a release immediately after the merge request was merged. So `stem` is already usable, as long as you don’t have some old version pinned due to other package dependencies.

---

<div class="post-metadata">

**Author:** ![TheLateKronos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thelatekronos/32/12824_2.png) [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Post date:** [March 16, 2021, 9:16am UTC](https://discourse.julialang.org/t/stem-plot-in-makie-jl/54234/7 "2021-03-16T09:16:16Z")

</div>

Alright. Would that mean that I had to add `using AbstractPlotting` in addition to my preferred Makie package?

---

<div class="post-metadata">

**Author:** ![Uroc327](https://avatars.discourse-cdn.com/v4/letter/u/eb8c5e/32.png) [@Uroc327](https://discourse.julialang.org/u/Uroc327)\
**Post date:** [March 16, 2021, 10:32am UTC](https://discourse.julialang.org/t/stem-plot-in-makie-jl/54234/8 "2021-03-16T10:32:39Z")

</div>

No, AbstractPlotting is a dependency of Makie. It should be updated by `] up` as well.
