Can you reproduce the bug with a fresh environment ? yes
Platform: Ubuntu 24.04.1 LTS, Julia 1.10.5
When using the text! function and space=:relative, it does not work when the x-axis is of DateTime type. In my understanding, if space=:relative is set, it should always accept floating point x, y coordinates, independent of the axis data types, since it's relative to the plot area, not the data space?
Self-contained, reproducible example:
using Makie, Dates
f = Figure();
ax = Axis(f[1, 1]);
x = [DateTime(2020, 1, 1), DateTime(2020, 1, 2), DateTime(2020, 1, 3)];
y = [1.0, 2.0, 1.5];
Makie.lines!(ax, x, y, color=:yellow)
text!(ax, 0.0, 1.0,
text="Title",
font=:bold,
align=(:left, :top),
offset=(8, -4),
space=:relative)
display(f);
v0.21.9
yes
Ubuntu 24.04.1 LTS, Julia 1.10.5
When using the
text!
function andspace=:relative
, it does not work when the x-axis is ofDateTime
type. In my understanding, ifspace=:relative
is set, it should always accept floating pointx
,y
coordinates, independent of the axis data types, since it's relative to the plot area, not the data space?Self-contained, reproducible example:
Output: