# Mix 3d and 2d coordinates in Makie

**URL:** <https://discourse.julialang.org/t/mix-3d-and-2d-coordinates-in-makie/116350>\
**Category:** General Usage\
**Tags:** makie, 3d\
**Created:** [June 28, 2024, 10:21am UTC](https://discourse.julialang.org/t/mix-3d-and-2d-coordinates-in-makie/116350 "2024-06-28T10:21:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gdkrmr](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gdkrmr/32/2791_2.png) [@gdkrmr](https://discourse.julialang.org/u/gdkrmr)\
**Post date:** [June 28, 2024, 10:21am UTC](https://discourse.julialang.org/t/mix-3d-and-2d-coordinates-in-makie/116350/1 "2024-06-28T10:21:20Z")

</div>

Is it possible to mix 2d and 3d coordinates in Makie?

```julia
fig = Figure()
axis = Axis3(fig[1, 1])
scatter!(axis, 0, 0, 0)
# i want this one to be fixed in 2d
text!(axis, 0, 0, text = "look here")
# draw a line from the label, (0, 0) in 2d space to the point (0, 0, 0) in 3d space
lines()

```

---

<div class="post-metadata">

**Author:** ![asinghvi17](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/asinghvi17/32/8272_2.png) [@asinghvi17](https://discourse.julialang.org/u/asinghvi17)\
**Post date:** [June 28, 2024, 11:54am UTC](https://discourse.julialang.org/t/mix-3d-and-2d-coordinates-in-makie/116350/2 "2024-06-28T11:54:44Z")

</div>

By “2d” here, do you mean that you want the text to be in a fixed position on the screen? If so, try eg `text(position; text, space = :relative)` or `:pixel`. To draw a line to the text from a position in the scene is a bit more complex but you can use e.g. `Makie.project(scene, text_position, :relative, :data)` to get a position in data space that you can plot a line to in the scene.
