[Makie] Latex in tick labels

How do you render a latex expression for the ticks in a Makie plot ?


ax = Axis(Figure()[1,1])
xlims!(ax, 1, nothing)
ax.xscale = log2
ax.xticks = ([1, 8, 32], [L"2^0", L"2^3", L"2^5"])
values = [1,2,3,4,5,6]
points = [1,2,4,8,16,32]
lines!(ax, points, values)

My output with CairoMakie is

Can you try passing the ticks to the Axis constructor directly? Seems like your labels were converted to normal Strings, that could happen if an internal container was typed String initially.

This actually worked. Shall I file a bug ?

Yeah go ahead, this should work