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
arr = normalize([cospi(rad/2), 0, sinpi(rad/2), -sinpi(rad/2)])
Makie.rotate!(ax, Quaternionf0(arr[1], arr[2], arr[3], arr[4]))
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
arr = normalize([cospi(rad/2), 0, sinpi(rad/2), -sinpi(rad/2)])
Makie.rotate!(ax, Quaternionf0(arr[1], arr[2], arr[3], arr[4])) # if not 'ax' here, what?
sleep(interval)
end