# Makie Legend overdrawn by Axis3 Tick Labels

**URL:** <https://discourse.julialang.org/t/makie-legend-overdrawn-by-axis3-tick-labels/95083>\
**Category:** Visualization\
**Tags:** makie\
**Created:** [February 23, 2023, 2:57pm UTC](https://discourse.julialang.org/t/makie-legend-overdrawn-by-axis3-tick-labels/95083 "2023-02-23T14:57:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpdoane](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@jpdoane](https://discourse.julialang.org/u/jpdoane)\
**Post date:** [February 23, 2023, 2:57pm UTC](https://discourse.julialang.org/t/makie-legend-overdrawn-by-axis3-tick-labels/95083/1 "2023-02-23T14:57:54Z")

</div>

Axis3 tick labels overdraw the legend as shown here.

```julia
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

```

 ![image](https://global.discourse-cdn.com/julialang/original/3X/f/f/ff2f868b90381fde3a1569d5a72e244df2523cdb.png)

Perhaps related to [this](https://discourse.julialang.org/t/yticks-on-makie-plots-get-on-top-of-the-legend-box/84633), but the proposed workaround of translating the scene in Z is not straightforward for a 3d plot.

---

<div class="post-metadata">

**Author:** ![ffreyer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ffreyer/32/21569_2.png) [@ffreyer](https://discourse.julialang.org/u/ffreyer)\
**Post date:** [February 23, 2023, 3:36pm UTC](https://discourse.julialang.org/t/makie-legend-overdrawn-by-axis3-tick-labels/95083/2 "2023-02-23T15:36:44Z")

</div>

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.)
