# How to call multiple Makie recipes for heterogeneous collections?

**URL:** <https://discourse.julialang.org/t/how-to-call-multiple-makie-recipes-for-heterogeneous-collections/137483>\
**Category:** Visualization\
**Tags:** makie, interactivity, observables\
**Created:** [June 7, 2026, 2:35pm UTC](https://discourse.julialang.org/t/how-to-call-multiple-makie-recipes-for-heterogeneous-collections/137483 "2026-06-07T14:35:09Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [June 7, 2026, 4:29pm UTC](https://discourse.julialang.org/t/how-to-call-multiple-makie-recipes-for-heterogeneous-collections/137483/3 "2026-06-07T16:29:52Z")

</div>

For future reference, this is the other post:

> [@How to insert an interactive condition inside a Makie recipe?](https://discourse.julialang.org/t/how-to-insert-an-interactive-condition-inside-a-makie-recipe/137482):
>
> The following MWE is self-explanatory: using GLMakie import Makie # define recipe with condition "showlines" Makie.@recipe(MyPlot, x, y) do scene Makie.Attributes(; showlines=true ) end # toggle between scatterlines and scatter function Makie.plot!(plot::MyPlot) if plot.showlines[] # this is the root of the issue Makie.scatterlines!(plot, plot.x, plot.y) else Makie.scatter!(plot, plot.x, plot.y) end end # initialize plot x = 1:10 y = rand(10) showlines = Observable(true…

---

_[View the full topic](https://discourse.julialang.org/t/how-to-call-multiple-makie-recipes-for-heterogeneous-collections/137483)._
