# Get Axis from Scene

**URL:** <https://discourse.julialang.org/t/get-axis-from-scene/74935>\
**Category:** Visualization\
**Tags:** question, plotting, makie\
**Created:** [January 20, 2022, 12:57pm UTC](https://discourse.julialang.org/t/get-axis-from-scene/74935 "2022-01-20T12:57:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fbanning](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fbanning/32/14972_2.png) [@fbanning](https://discourse.julialang.org/u/fbanning)\
**Post date:** [January 20, 2022, 12:57pm UTC](https://discourse.julialang.org/t/get-axis-from-scene/74935/1 "2022-01-20T12:57:30Z")

</div>

If I have a reference to a scene, how can I get a reference to its corresponding axis?

Take the following case:

```julia
fig = Figure()
ax = Axis(fig[1,1])
s = ax.scene

```

Now if I only have `s` , how can I get `ax`?

Intuitively I’ve tried `s.parent` but that returns another `Scene` and not an `Axis` .

---

<div class="post-metadata">

**Author:** ![fbanning](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fbanning/32/14972_2.png) [@fbanning](https://discourse.julialang.org/u/fbanning)\
**Post date:** [January 21, 2022, 12:45pm UTC](https://discourse.julialang.org/t/get-axis-from-scene/74935/2 "2022-01-21T12:45:51Z")

</div>

To whom it may concern, I got an answer over on slack: It is currently impossible to get a reference to an Axis from a Scene. This is due to how Scenes have been designed historically.
