# How do I make a Makie.jl recipe which defaults to 3D rendering?

**URL:** <https://discourse.julialang.org/t/how-do-i-make-a-makie-jl-recipe-which-defaults-to-3d-rendering/117631>\
**Category:** Visualization\
**Tags:** question, plotting, makie\
**Created:** [July 30, 2024, 1:35pm UTC](https://discourse.julialang.org/t/how-do-i-make-a-makie-jl-recipe-which-defaults-to-3d-rendering/117631 "2024-07-30T13:35:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![josuagrw](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/josuagrw/32/1015_2.png) [@josuagrw](https://discourse.julialang.org/u/josuagrw)\
**Post date:** [July 30, 2024, 1:35pm UTC](https://discourse.julialang.org/t/how-do-i-make-a-makie-jl-recipe-which-defaults-to-3d-rendering/117631/1 "2024-07-30T13:35:24Z")

</div>

I have a recipe that used to run fine with Makie 0.15. In the current Makie version (0.21) it renders as 2D unless I pass the keyword argument `axis=(type=Makie.Axis3,)`. How can I make 3D rendering the default?

---

<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:** [July 30, 2024, 1:39pm UTC](https://discourse.julialang.org/t/how-do-i-make-a-makie-jl-recipe-which-defaults-to-3d-rendering/117631/2 "2024-07-30T13:39:54Z")

</div>

```julia
Makie.preferred_axis_type(::YourRecipe) = LScene
# Or depending on the argumens:
Makie.args_preferred_axis(::YourRecipe, args::YourTypes...) = ...

```

---

<div class="post-metadata">

**Author:** ![josuagrw](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/josuagrw/32/1015_2.png) [@josuagrw](https://discourse.julialang.org/u/josuagrw)\
**Post date:** [July 30, 2024, 1:44pm UTC](https://discourse.julialang.org/t/how-do-i-make-a-makie-jl-recipe-which-defaults-to-3d-rendering/117631/3 "2024-07-30T13:44:23Z")

</div>

Thanks!
