# Bottom and top in text in Makie

**URL:** https://discourse.julialang.org/t/bottom-and-top-in-text-in-makie/129403
**Category:** Visualization
**Tags:** question, makie
**Created:** [May 28, 2025, 10:16am UTC](https://discourse.julialang.org/t/bottom-and-top-in-text-in-makie/129403 "2025-05-28T10:16:02Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![WalterMadelim](https://avatars.discourse-cdn.com/v4/letter/w/3e96dc/32.png) [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)
#### Post date: [May 28, 2025, 10:16am UTC](https://discourse.julialang.org/t/bottom-and-top-in-text-in-makie/129403/1 "2025-05-28T10:16:02Z")

</div>

I suspect that the “top” and “bottom” [here](https://docs.makie.org/stable/reference/plots/text#Alignment) should be swapped?

 ![image](https://global.discourse-cdn.com/julialang/original/3X/7/9/7982afd9f1645e4804ebbfb541594ea4092310c2.png)

Note that I mean that the API `text!(; align = ...)` should be modified. I don’t mean the tutorial itself .

The text is just above the baseline—this is the logic of the 3rd line.  
So the location is in terms of the point specified by `(x, y)`.

In the same line of reasoning, the correct name for the 4th row should be `:top`?

The current behavior is confusing

 ![image](https://global.discourse-cdn.com/julialang/original/3X/7/b/7bc563f0aada07cb61d3d118ae182c50f1fbf81c.png)

---

<div class="post-metadata">

### Author: ![hexaeder](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hexaeder/32/24403_2.png) [@hexaeder](https://discourse.julialang.org/u/hexaeder)
#### Post date: [May 28, 2025, 11:59am UTC](https://discourse.julialang.org/t/bottom-and-top-in-text-in-makie/129403/2 "2025-05-28T11:59:06Z")

</div>

Think of it this way:

```julia
align = (:center, :top)

```

means:

- The horizontal **center** of the textbox is horizontally aligned with the given position.
- The **top** of the textbox is vertically aligned with the given position.

In the same logic, baseline refers to the [typographic baseline](https://en.wikipedia.org/wiki/Baseline_(typography)). This is different from saying the text is left, right, above or below the given position.

---

<div class="post-metadata">

### Author: ![WalterMadelim](https://avatars.discourse-cdn.com/v4/letter/w/3e96dc/32.png) [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)
#### Post date: [May 28, 2025, 1:50pm UTC](https://discourse.julialang.org/t/bottom-and-top-in-text-in-makie/129403/3 "2025-05-28T13:50:37Z")

</div>

I overlooked the key name being “align” 🙂
