Arrows overlaps points in 3D Axis

Hi, I don’t know if I am doing something wrong, or if this is already mentioned somewhere else (I searched a lot) but when I am adding an arrow in 3D axis then it is overlapping all the points.
For example:

using Distributions: Uniform
using CairoMakie
N=10000
X=rand.(Uniform.(-1,1),N)
Y=rand.(Uniform.(-1,1),N)
Z=rand.(Uniform.(-1,1),N)

fig3d, ax3d,sc3d=CairoMakie.scatter(X,Y,Z,transparency = true)
arrows!(ax3d,[0],[0],[0], [0],[0],[1],color=:green,arrowsize=Vec3f(0.1, 0.1, 0.2),linewidth=0.025,transparency = true)
fig3d

So, you cannot visualise the real 3d geometry of the figure. Is there is anything I can do to solve it?
Thanks!

CairoMakie can only fake 3d and layers plots on top of each other in 2d. You need to use GLMakie which uses a depth buffer so that your scatter dots can cover the arrow.

1 Like