# Makie: text coordinates relative to the edges of the Axis

**URL:** <https://discourse.julialang.org/t/makie-text-coordinates-relative-to-the-edges-of-the-axis/81102>\
**Category:** Visualization\
**Tags:** question, plotting, makie\
**Created:** [May 15, 2022, 2:56pm UTC](https://discourse.julialang.org/t/makie-text-coordinates-relative-to-the-edges-of-the-axis/81102 "2022-05-15T14:56:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RayleighLord](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rayleighlord/32/33592_2.png) [@RayleighLord](https://discourse.julialang.org/u/RayleighLord)\
**Post date:** [May 15, 2022, 2:56pm UTC](https://discourse.julialang.org/t/makie-text-coordinates-relative-to-the-edges-of-the-axis/81102/1 "2022-05-15T14:56:06Z")

</div>

Hello,

In Matplotlib, it is possible to introduce text in the figures relative to the edges of the axis and not depending on the size of the particular plot you have. For example, you could place a text at (0.1, 0.1), which means 10% of the axis size in both the x and y direction, no matter what you are plotting.

Is there a similar option currently in Makie?

---

<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:** [May 15, 2022, 3:26pm UTC](https://discourse.julialang.org/t/makie-text-coordinates-relative-to-the-edges-of-the-axis/81102/2 "2022-05-15T15:26:39Z")

</div>

You could try the new space keyword from 0.17 [News](https://makie.juliaplots.org/stable/news/#v017)

---

<div class="post-metadata">

**Author:** ![RayleighLord](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rayleighlord/32/33592_2.png) [@RayleighLord](https://discourse.julialang.org/u/RayleighLord)\
**Post date:** [May 17, 2022, 7:32am UTC](https://discourse.julialang.org/t/makie-text-coordinates-relative-to-the-edges-of-the-axis/81102/3 "2022-05-17T07:32:22Z")

</div>

Do you have some small example where this keyword is used?

---

<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:** [May 17, 2022, 10:25am UTC](https://discourse.julialang.org/t/makie-text-coordinates-relative-to-the-edges-of-the-axis/81102/4 "2022-05-17T10:25:41Z")

</div>

```julia
text("hello", space = :relative, position = Point2f(0.1, 0.9))
text!("bye", space = :relative, position = Point2f(0.5, 0.5))
current_figure()

```

 ![grafik](https://global.discourse-cdn.com/julialang/original/3X/a/4/a4419fc00491ebd94914cd54383e8f8d39c1b8d2.png)
