 # Rotate a subplot in MakieLayout?

I am trying to make the individual cubes in the grid of graphs rotate below, but get: "ERROR: MethodError: no method matching transformation(::LAxis)

I am not sure how to refer to a specific axis or subscene’s mesh to rotate the graph. Code:

`````` using LinearAlgebra, Makie
using AbstractPlotting.MakieLayout
using AbstractPlotting

const N = 40
const interval = 0.07

const scene, layout = layoutscene(30, resolution = (1200, 900))

const axes = [LAxis(scene) for i in 1:4, j in 1:4]
tightlimits!.(axes)
layout[1:4, 1:4] = axes

for ax in axes
mesh!(ax, FRect3D(Vec3f0(-0.5), Vec3f0(1)), color = :aquamarine)
end

display(scene)

for rad in 0.5:1/N:8.5, ax in axes
Makie.rotate!(ax, Quaternionf0(arr, arr, arr, arr))
sleep(interval)
end

const N = 40
const interval = 0.07

const scene, layout = layoutscene(30, resolution = (1200, 900))

const axes = [LAxis(scene) for i in 1:4, j in 1:4]
tightlimits!.(axes)
layout[1:4, 1:4] = axes

for ax in axes
mesh!(ax, FRect3D(Vec3f0(-0.5), Vec3f0(1)), color = :skyblue2)
end

display(scene)

for rad in 0.5:1/N:8.5, ax in axes
Makie.rotate!(ax, Quaternionf0(arr, arr, arr, arr))  # if not 'ax' here, what?
sleep(interval)
end``````

Ah, found it by trying a few things-- the line should be

``````Makie.rotate!(ax.scene, Quaternionf0(arr, arr, arr, arr))
``````

because apparently each LAxis can contain a subscene field called scene.

Be aware, though, that by manipulating the scene contained in LAxis like that, you break assumptions for the tick positions etc, basically behavior is undefined from that point

So if the ticks are wrong after a rotation, can I turn the axes of the plots off below?

``````using LinearAlgebra, Makie
using AbstractPlotting.MakieLayout
using AbstractPlotting

const N = 40
const interval = 0.05

const scene, layout = layoutscene(30, resolution = (1200, 900))

const axes = [LAxis(scene) for i in 1:4, j in 1:4]
tightlimits!.(axes)
layout[1:4, 1:4] = axes

for ax in axes
mesh!(ax, FRect3D(Vec3f0(-0.6), Vec3f0(1.2)), color =:aquamarine, show_axis=false)
xlims!(ax, [-1, 1])
ylims!(ax, [-1, 1])
end

display(scene)