Open jewh opened 1 year ago
System info:
julia> versioninfo()
Julia Version 1.8.2
Commit 36034abf26 (2022-09-29 15:21 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: 16 × 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-13.0.1 (ORCJIT, tigerlake)
Threads: 16 on 16 virtual cores
Environment:
JULIA_EDITOR = code
JULIA_NUM_THREADS = 16
The problem is the line, it fails with \sqrt
as well.
Something goes wrong when the label is changed. If the xlabel
is set at the axis creation, it works, e.g.
using CairoMakie
fig = Figure()
ax = Axis(fig[1, 1] ; xlabel = L"\frac{\pi}{x}")
fig
Yes this seems to be a regression, the rotation of those lines also broke, there's another issue about that open already. Haven't had time to track it down, yet.
I actually think this has to do with these lines https://github.com/MakieOrg/Makie.jl/blob/e4f363b1d081bc799a8a998ba7b4aad909a8c791/src/interfaces.jl#L85-L86 from this PR https://github.com/MakieOrg/Makie.jl/pull/3062 cc @SimonDanisch
Running latest version of CairoMakie - v0.5.10
As in title. MWE to reproduce the error:
Error message:
Seems to be specific to fractions. If one replaces the sixth line with `ax.xlabel=L"\pi x" everything behaves as expected.