# How to get axes from figure?

**URL:** <https://discourse.julialang.org/t/how-to-get-axes-from-figure/62307>\
**Category:** General Usage\
**Tags:** makie\
**Created:** [June 2, 2021, 11:09pm UTC](https://discourse.julialang.org/t/how-to-get-axes-from-figure/62307 "2021-06-02T23:09:24Z")\
**Posts on this page:** 2\
**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:** [June 2, 2021, 11:09pm UTC](https://discourse.julialang.org/t/how-to-get-axes-from-figure/62307/1 "2021-06-02T23:09:24Z")

</div>

I have a figure whose layout is

```julia
> fig.layout
GridLayout[4, 1] with 4 children
 ┣━ [1, 1] Axis
 ┣━ [2, 1] Axis
 ┣━ [3, 1] Axis
 ┗━ [4, 1] Axis

```

How can I get the axes from that?

---

<div class="post-metadata">

**Author:** ![ericphanson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ericphanson/32/215186_2.png) [@ericphanson](https://discourse.julialang.org/u/ericphanson)\
**Post date:** [June 2, 2021, 11:15pm UTC](https://discourse.julialang.org/t/how-to-get-axes-from-figure/62307/2 "2021-06-02T23:15:25Z")

</div>

You can use `content` (see [https://makie.juliaplots.org/stable/figure.html#Retrieving-Objects-From-A-Figure](https://makie.juliaplots.org/stable/figure.html#Retrieving-Objects-From-A-Figure))
