Makie: text coordinates relative to the edges of the Axis

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?

You could try the new space keyword from 0.17 News

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

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

1 Like