# Possible to emulate Plots.jl's zerolines layout in Makie?

**URL:** <https://discourse.julialang.org/t/possible-to-emulate-plots-jls-zerolines-layout-in-makie/107230>\
**Category:** Visualization\
**Tags:** plots, makie\
**Created:** [December 6, 2023, 6:13pm UTC](https://discourse.julialang.org/t/possible-to-emulate-plots-jls-zerolines-layout-in-makie/107230 "2023-12-06T18:13:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mike.ingold](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mike.ingold/32/203749_2.png) [@mike.ingold](https://discourse.julialang.org/u/mike.ingold)\
**Post date:** [December 6, 2023, 6:13pm UTC](https://discourse.julialang.org/t/possible-to-emulate-plots-jls-zerolines-layout-in-makie/107230/1 "2023-12-06T18:13:12Z")

</div>

Is there a built-in option in Makie to format an `Axis` to emulate the style of `plot(x,y, framestyle=:zerolines)`, i.e. no outer spines and axis lines drawn through `x=0` and `y=0`? Essentially, trying to achieve something like the following (stolen from [Plot: Visualize a Function—Wolfram Documentation](https://reference.wolfram.com/language/ref/Plot.html#260424)):

![image](https://global.discourse-cdn.com/julialang/original/3X/4/1/41f037950ee55cf4276af0b1a452f341de0ad537.png)

I see in the docs here ([Axis · Makie](https://docs.makie.org/stable/reference/blocks/axis/index.html)) that hiding the outer spines is possible, but I haven’t been able to find anything about the axis line positions. I’d guess that a workaround could be implemented, but this seems to me worth having as a (non-default) layout option.

---

<div class="post-metadata">

**Author:** ![stillyslalom](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stillyslalom/32/45687_2.png) [@stillyslalom](https://discourse.julialang.org/u/stillyslalom)\
**Post date:** [December 6, 2023, 6:52pm UTC](https://discourse.julialang.org/t/possible-to-emulate-plots-jls-zerolines-layout-in-makie/107230/2 "2023-12-06T18:52:18Z")

</div>

Looks like there’s been some movement behind the scenes, but no official support: [Makie: Axis through (0,0) - #4 by jules](https://discourse.julialang.org/t/makie-axis-through-0-0/103968/4)
