AlgebraOfGraphics.jl icon indicating copy to clipboard operation
AlgebraOfGraphics.jl copied to clipboard

`renamer` does not work with latex

Open rashidrafeek opened this issue 1 year ago • 0 comments

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

renamerlatex

Version info

Julia v1.10.3 AlgebraOfGraphics v0.6.19 CairoMakie v0.12.2

rashidrafeek avatar Jun 02 '24 09:06 rashidrafeek