# How to use default attributes of existing plot type in recipe definition in Makie 0.24?

**URL:** <https://discourse.julialang.org/t/how-to-use-default-attributes-of-existing-plot-type-in-recipe-definition-in-makie-0-24/130290>\
**Category:** General Usage\
**Tags:** question, plotting, makie\
**Created:** [June 28, 2025, 4:59am UTC](https://discourse.julialang.org/t/how-to-use-default-attributes-of-existing-plot-type-in-recipe-definition-in-makie-0-24/130290 "2025-06-28T04:59:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fverdugo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fverdugo/32/9446_2.png) [@fverdugo](https://discourse.julialang.org/u/fverdugo)\
**Post date:** [June 28, 2025, 4:59am UTC](https://discourse.julialang.org/t/how-to-use-default-attributes-of-existing-plot-type-in-recipe-definition-in-makie-0-24/130290/1 "2025-06-28T04:59:57Z")

</div>

Hi,

I am trying to update some Makie recipes to Makie 0.24. I would like to know how to get the default attributes of an existing plot type in the recipe definition, and possibly combine these attributes with local attributes for the new plot type.

I was doing this pre 0.24 like this:

(see the calls to `default_theme` and `merge`)

```julia
# Pre Makie 0.24
Makie.@recipe(MakiePlot) do scene
    t1 = Makie.Theme(
        dim = Makie.Automatic(),
        shrink = false,
        warp_by_vector = nothing,
        warp_by_scalar = nothing,
        warp_scale = 1,
        strokecolor = nothing,
        strokewidth = nothing,
        color = :lightblue,
        colormap = :bluesreds,
        shading = Makie.NoShading,
        cycle = nothing,
        refinement = nothing,
       )
    t2 = Makie.default_theme(scene, Makie.Mesh)
    merge(t1,t2)
end

```

**Which would be the equivalent in Makie 0.24?**

Thanks in advance!

cc @sdanisch @jules

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [June 28, 2025, 7:58am UTC](https://discourse.julialang.org/t/how-to-use-default-attributes-of-existing-plot-type-in-recipe-definition-in-makie-0-24/130290/2 "2025-06-28T07:58:14Z")

</div>

is this not working anymore?

---

<div class="post-metadata">

**Author:** ![fverdugo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fverdugo/32/9446_2.png) [@fverdugo](https://discourse.julialang.org/u/fverdugo)\
**Post date:** [June 28, 2025, 8:11am UTC](https://discourse.julialang.org/t/how-to-use-default-attributes-of-existing-plot-type-in-recipe-definition-in-makie-0-24/130290/3 "2025-06-28T08:11:33Z")

</div>

Hi @sdanisch

In the new recipe macro signature I don’t know where to get the `scene` from:

```julia
# Makie 0.24
Makie.@recipe MakiePlot begin
    Makie.mixin_generic_plot_attributes()...
end

```

Any clue?

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [June 28, 2025, 9:46am UTC](https://discourse.julialang.org/t/how-to-use-default-attributes-of-existing-plot-type-in-recipe-definition-in-makie-0-24/130290/4 "2025-06-28T09:46:07Z")

</div>

Ah you want to upgrade to the new recipe 😉  
I think you should be able to use `Makie.documented_attributes(Mesh)...`.

---

<div class="post-metadata">

**Author:** ![fverdugo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fverdugo/32/9446_2.png) [@fverdugo](https://discourse.julialang.org/u/fverdugo)\
**Post date:** [June 28, 2025, 3:35pm UTC](https://discourse.julialang.org/t/how-to-use-default-attributes-of-existing-plot-type-in-recipe-definition-in-makie-0-24/130290/5 "2025-06-28T15:35:11Z")

</div>

It works, thanks!
