# Arrows overlaps points in 3D Axis

**URL:** <https://discourse.julialang.org/t/arrows-overlaps-points-in-3d-axis/82146>\
**Category:** Visualization\
**Tags:** makie\
**Created:** [June 2, 2022, 5:07pm UTC](https://discourse.julialang.org/t/arrows-overlaps-points-in-3d-axis/82146 "2022-06-02T17:07:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mixpap](https://avatars.discourse-cdn.com/v4/letter/m/4da419/32.png) [@Mixpap](https://discourse.julialang.org/u/Mixpap)\
**Post date:** [June 2, 2022, 5:07pm UTC](https://discourse.julialang.org/t/arrows-overlaps-points-in-3d-axis/82146/1 "2022-06-02T17:07:04Z")

</div>

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:

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

```

 ![plot_322](https://global.discourse-cdn.com/julialang/original/3X/1/8/188ee5ff3810c83e504a5e4cf353b1f74dd82775.png)

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

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)\
**Post date:** [June 2, 2022, 6:44pm UTC](https://discourse.julialang.org/t/arrows-overlaps-points-in-3d-axis/82146/2 "2022-06-02T18:44:55Z")

</div>

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.
