# Subplots CairoMakie

**URL:** <https://discourse.julialang.org/t/subplots-cairomakie/110504>\
**Category:** Visualization\
**Created:** [February 21, 2024, 8:57am UTC](https://discourse.julialang.org/t/subplots-cairomakie/110504 "2024-02-21T08:57:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergey\_Novak](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sergey_novak/32/37716_2.png) [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Post date:** [February 21, 2024, 8:57am UTC](https://discourse.julialang.org/t/subplots-cairomakie/110504/1 "2024-02-21T08:57:33Z")

</div>

Hello, i want plot N subplots and off for all subplots ticks on axis. For example i do it in python with matplotlib. How can i do this with CairoMakie?  
Thank you for your helps

 ![Screenshot from 2024-02-21 11-52-41](https://global.discourse-cdn.com/julialang/original/3X/0/b/0b02721e1e86956c814f509309539afc30afa21c.jpeg)

---

<div class="post-metadata">

**Author:** ![sijo](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@sijo](https://discourse.julialang.org/u/sijo)\
**Post date:** [February 21, 2024, 9:05am UTC](https://discourse.julialang.org/t/subplots-cairomakie/110504/2 "2024-02-21T09:05:59Z")

</div>

What do you mean by “for all subplots ticks on axis”? The screenshot is not very clear in terms of what result you want to achieve, since it doesn’t show subplots…

---

<div class="post-metadata">

**Author:** ![Sergey\_Novak](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sergey_novak/32/37716_2.png) [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Post date:** [February 21, 2024, 9:14am UTC](https://discourse.julialang.org/t/subplots-cairomakie/110504/3 "2024-02-21T09:14:32Z")

</div>

I want plot several subplots. for example this image and hide ticks

 ![image](https://global.discourse-cdn.com/julialang/original/3X/9/b/9b415f165628bbe22d65b4ff09fd2f2f8c398f9e.png)

---

<div class="post-metadata">

**Author:** ![sijo](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@sijo](https://discourse.julialang.org/u/sijo)\
**Post date:** [February 21, 2024, 9:36am UTC](https://discourse.julialang.org/t/subplots-cairomakie/110504/4 "2024-02-21T09:36:34Z")

</div>

Here are two ways to do it:

```julia
using CairoMakie

N = 3

fig = Figure(size=(800, 400))
for i in 1:N
    ax, plt = scatter(fig[i, 1], rand(100))
    hidedecorations!(ax)
end
rowgap!(fig.layout, 0)
fig

```

or

```julia
using CairoMakie

N = 3

fig = Figure(size=(800, 400))
for i in 1:N
    ax = Axis(fig[i, 1], xticksvisible=false, yticksvisible=false,
              xticklabelsvisible=false, yticklabelsvisible=false)
    scatter!(ax, rand(100))
end
rowgap!(fig.layout, 0)
fig

```

---

<div class="post-metadata">

**Author:** ![Sergey\_Novak](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sergey_novak/32/37716_2.png) [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Post date:** [February 21, 2024, 9:43am UTC](https://discourse.julialang.org/t/subplots-cairomakie/110504/5 "2024-02-21T09:43:43Z")

</div>

Thank you!
