# Axis theme for custom type in AbstractPlotting

**URL:** <https://discourse.julialang.org/t/axis-theme-for-custom-type-in-abstractplotting/23101>\
**Category:** Visualization\
**Created:** [April 13, 2019, 12:27am UTC](https://discourse.julialang.org/t/axis-theme-for-custom-type-in-abstractplotting/23101 "2019-04-13T00:27:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![grero](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/grero/32/109_2.png) [@grero](https://discourse.julialang.org/u/grero)\
**Post date:** [April 13, 2019, 12:27am UTC](https://discourse.julialang.org/t/axis-theme-for-custom-type-in-abstractplotting/23101/1 "2019-04-13T00:27:03Z")

</div>

Hi,  
I am trying out AbstractPlotting recipes for a custom type, and I have a question about theming. I understand that extending AbstractPlotting.default\_theme is the way to pass attributes to my plot, as shown the [molecule simulation example](https://github.com/JuliaPlots/MakieGallery.jl/blob/22ace94469eb77e38b52dfd54a7d4967c8b8d4cf/examples/recipes.jl). But is there a way to override defaults for other parts of the plot, e.g. the axes? For my type, for instance, I’d like to specify that only the left frame should be drawn, and there shouldn’t be any grid lines visible. I tried something like this

```julia
function AbstractPlotting.default_theme(scene::SceneLike, ::Type{<: Plot(MyType)})
    Theme(colormap = ::viridis,
          textsize = 6,
          axis = Theme(frame = Theme(frames = ((true, false), (false, false))),
                  grid = Theme(linewidth = (0, 0)),
         )
     )
end

```

but the themes for the axis do not seem to be propagated to the final plot. Is there a better/correct way of doing this? Thanks!

---

<div class="post-metadata">

**Author:** ![asinghvi17](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/asinghvi17/32/8272_2.png) [@asinghvi17](https://discourse.julialang.org/u/asinghvi17)\
**Post date:** [June 29, 2019, 5:46am UTC](https://discourse.julialang.org/t/axis-theme-for-custom-type-in-abstractplotting/23101/2 "2019-06-29T05:46:40Z")

</div>

Just to put the solution here, the keyword to use as far as I recall was `axis2d`.
