# Avoid repeating tick labels with subplots in Plots.jl

**URL:** <https://discourse.julialang.org/t/avoid-repeating-tick-labels-with-subplots-in-plots-jl/351>\
**Category:** Visualization\
**Tags:** plots\
**Created:** [November 16, 2016, 12:14pm UTC](https://discourse.julialang.org/t/avoid-repeating-tick-labels-with-subplots-in-plots-jl/351 "2016-11-16T12:14:32Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![tbreloff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tbreloff/32/68_2.png) [@tbreloff](https://discourse.julialang.org/u/tbreloff)\
**Post date:** [November 16, 2016, 2:25pm UTC](https://discourse.julialang.org/t/avoid-repeating-tick-labels-with-subplots-in-plots-jl/351/2 "2016-11-16T14:25:47Z")

</div>

On master this will work:

```julia
julia> using Plots; funcs=[sin,cos,sinh,cosh];

julia> p = plot(funcs,-6,6,link=:both,layout=4,title=reshape(map(string,funcs),1,4),leg=false)

julia> for i=1:2; plot!(p[i],xformatter=_->""); plot!(p[2i],yformatter=_->""); end; p

```

![](https://global.discourse-cdn.com/julialang/original/3X/8/2/8271ab635626fefadb18c96eb60571f866c97484.png)

I set the formatter to always return an empty string, so that the ticks will still be there (so the grid lines will be drawn). If you don’t care about the grid, you can also set `xticks=nothing`.

---

_[View the full topic](https://discourse.julialang.org/t/avoid-repeating-tick-labels-with-subplots-in-plots-jl/351)._
