Bottom and top in text in Makie

I suspect that the “top” and “bottom” here should be swapped?

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

Think of it this way:

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. This is different from saying the text is left, right, above or below the given position.

3 Likes

I overlooked the key name being “align” :slightly_smiling_face: