# Hide axis labels

**URL:** <https://discourse.julialang.org/t/hide-axis-labels/67443>\
**Category:** Visualization\
**Tags:** makie, algebraofgraphics\
**Created:** [August 31, 2021, 6:35pm UTC](https://discourse.julialang.org/t/hide-axis-labels/67443 "2021-08-31T18:35:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jzr](https://avatars.discourse-cdn.com/v4/letter/j/eb9ed0/32.png) [@jzr](https://discourse.julialang.org/u/jzr)\
**Post date:** [August 31, 2021, 6:35pm UTC](https://discourse.julialang.org/t/hide-axis-labels/67443/1 "2021-08-31T18:35:19Z")

</div>

```julia
using WGLMakie

n = 500
x = 1:n
y = randn(n)
c = rand('a':'d', n)

spec = data((;x,y,c)) * visual(Scatter) * mapping(:x, :y, row=:c)
draw(spec, axis=(; ylabelvisible=false))

```

 ![image](https://global.discourse-cdn.com/julialang/original/3X/5/0/504f297dde9b90cbadbde63b82c43ed528326436.png)

How can I hide each of these labels?

- y
- -2, 0, 2
- a,b,c,d

---

<div class="post-metadata">

**Author:** ![piever](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/piever/32/1815_2.png) [@piever](https://discourse.julialang.org/u/piever)\
**Post date:** [August 31, 2021, 7:29pm UTC](https://discourse.julialang.org/t/hide-axis-labels/67443/2 "2021-08-31T19:29:12Z")

</div>

For the y tick labels, just `axis = (yticklabelsvisible=false,)` should do it. The other two may be slightly less easy to do in a clean way.

`ylabelvisible` can definitely be made to work for the shared y label but yeah, I don’t think it does at the moment.

For facet labels, I imagine the cleanest solution is to support in AoG `yfacetlabel....` attributes mirroring `ylabel...` attributes to customize it, so one would do `axis = (yfacetlabelvisible=false,)`, but that also needs to be implemented. For now, facet labels take the styling (color, font, and size) from the axis title, which is a bit of a stopgap solution, they should probably have their own attributes.

---

<div class="post-metadata">

**Author:** ![jzr](https://avatars.discourse-cdn.com/v4/letter/j/eb9ed0/32.png) [@jzr](https://discourse.julialang.org/u/jzr)\
**Post date:** [August 31, 2021, 7:34pm UTC](https://discourse.julialang.org/t/hide-axis-labels/67443/3 "2021-08-31T19:34:38Z")

</div>

Perhaps it’s good for the attribute names to mirror the mapping names, such as `rowlabel`.
