# Makie: Type recipe and default\_theme

**URL:** <https://discourse.julialang.org/t/makie-type-recipe-and-default-theme/22795>\
**Category:** General Usage\
**Created:** [April 5, 2019, 12:51pm UTC](https://discourse.julialang.org/t/makie-type-recipe-and-default-theme/22795 "2019-04-05T12:51:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jw3126](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jw3126/32/3086_2.png) [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Post date:** [April 5, 2019, 12:51pm UTC](https://discourse.julialang.org/t/makie-type-recipe-and-default-theme/22795/1 "2019-04-05T12:51:16Z")

</div>

I would like to add a default theme when plotting a custom type. I tried the following, but the `default_theme` method is never called:

```julia
using Makie
using AbstractPlotting

struct MyArrowData end

function AbstractPlotting.convert_arguments(P::Type{<:AbstractPlot}, o::MyArrowData)
    pos = [randn(Point3f0) for _ in 1:100]
    vel = [randn(Vec3f0) for _ in 1:100]
    AbstractPlotting.convert_arguments(P, pos, vel)
end

function AbstractPlotting.default_theme(scene, ::Type{<:MyArrowData})
    Theme(
        linewidth=0.01,
        linecolor=:red,
    )
end

arrows(MyArrowData())

```
