AlgebraOfGraphics.jl
AlgebraOfGraphics.jl copied to clipboard
`renamer` does not work with latex
Bug description
When LatexStrings are provided as input to renamer, it shows up as normal text with "$" around it and not the latex output.
Steps to reproduce
x = 1:1000
y = cumsum(randn(length(x)))
z = cumsum(randn(length(x)))
df = (; x, y, z)
labels = [L"series 1", L"series 2"]
plt = data(df) *
mapping(:x, [:y, :z] .=> "value", color=dims(1) => renamer(labels) => "series ") *
visual(Lines)
draw(plt)
Images
Version info
Julia v1.10.3 AlgebraOfGraphics v0.6.19 CairoMakie v0.12.2