Makie Legend overdrawn by Axis3 Tick Labels

Axis3 tick labels overdraw the legend as shown here.

using CairoMakie

fig = Figure()
ax = fig[1, 1] = Axis3(fig)
for nn=1:5
    scatter!(randn(10),randn(10),randn(10), label="$nn")
end
axislegend(ax, position=:rb)
fig

Perhaps related to this, but the proposed workaround of translating the scene in Z is not straightforward for a 3d plot.

With how things are atm the legend should placed at a z value that doesn’t interact with the 3d plot. You can probably do something like translate(legend.blockscene, 0, 0, 9980) to manually adjust it. (And you may need to play with the value a bit. It’s further modified internally, and you’ll want it to be close to 10_000 but no more.)

1 Like