# Is it possible to add legends with Makie recepies?

**URL:** <https://discourse.julialang.org/t/is-it-possible-to-add-legends-with-makie-recepies/133375>\
**Category:** Visualization\
**Tags:** question, makie\
**Created:** [October 23, 2025, 8:44am UTC](https://discourse.julialang.org/t/is-it-possible-to-add-legends-with-makie-recepies/133375 "2025-10-23T08:44:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ohmsweetohm1](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ohmsweetohm1/32/49126_2.png) [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Post date:** [October 23, 2025, 8:44am UTC](https://discourse.julialang.org/t/is-it-possible-to-add-legends-with-makie-recepies/133375/1 "2025-10-23T08:44:18Z")

</div>

I have a `Makie.@recipe` for a custom type. When creating the plot, I also supply labels to the plot elements such as `line!`. However, when I call `Legend` on the axis where the plot is, Makie complaints that there are no labels. Is this not possible?

---

<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:** [October 23, 2025, 8:51am UTC](https://discourse.julialang.org/t/is-it-possible-to-add-legends-with-makie-recepies/133375/2 "2025-10-23T08:51:42Z")

</div>

Makie uses `get_plots` for that, you could overload it [Code search results · GitHub](https://github.com/search?q=repo%3AMakieOrg%2FMakie.jl%20get_plots&type=code)

It’s one of those things that’s not really public API but there’s no other solution right now, and it has existed for a long time
