# CairoMakie get 3d plots to respect z order

**URL:** <https://discourse.julialang.org/t/cairomakie-get-3d-plots-to-respect-z-order/110428>\
**Category:** Visualization\
**Tags:** makie\
**Created:** [February 19, 2024, 10:47pm UTC](https://discourse.julialang.org/t/cairomakie-get-3d-plots-to-respect-z-order/110428 "2024-02-19T22:47:56Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Jordan\_Cluts](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jordan_cluts/32/13753_2.png) [@Jordan\_Cluts](https://discourse.julialang.org/u/Jordan_Cluts)\
**Post date:** [February 21, 2024, 5:45pm UTC](https://discourse.julialang.org/t/cairomakie-get-3d-plots-to-respect-z-order/110428/5 "2024-02-21T17:45:24Z")

</div>

This is slightly tangentially related but I wanted to point out that I tackled a related issue about a year ago but with scatter. I eventually solved the problem using guidance from others here by sorting my points from furthest to closest to the camera. Maybe some details there will be useful to you.

> [@Point Occlusion in 3D Scatter Makie](https://discourse.julialang.org/t/point-occlusion-in-3d-scatter-makie/95413):
>
> When I create a 3D scatter plot in Makie some of the points that are “closer” to the camera are plotted behind points that are further from the camera. This can make the plots harder to interpret. Is there a setting or technique to change or improve this behavior? The below image shows what I mean where some points that are higher on the z-axis and therefore closer to the camera (lighter color)are plotted behind points that are lower down and further from the camera.

---

_[View the full topic](https://discourse.julialang.org/t/cairomakie-get-3d-plots-to-respect-z-order/110428)._
