using CairoMakie, AlgebraOfGraphics, DataFrames
update_theme!(Legend = (linewidth=20,markersize=20,), Lines = (linewidth=20,), Scatter = (markersize=20,),)
df = DataFrame(X = [1,2,3,1,2,3], Y = [1,2,3,1,2,3], Grp = ["A", "A", "A", "B", "B", "B"])
data(df) * mapping(:X, :Y, color = :Grp) * visual(Lines) |> draw
data(df) * mapping(:X, :Y, color = :Grp) * visual(Scatter) |> draw
In both these images, the legend marker size and line width are too small.
Bug description
The
linewidthandmarkersizeattributes fromLegendin a theme are not transfered to a plot. Something is going wrong here it seems (from Makie slack with @jkrumbiegel):AlgebraOfGraphics.jl/src/guides/legend.jl
Lines 366 to 372 in 461c975
Steps to reproduce
Here is a MWE:
Images
In both these images, the legend marker size and line width are too small.
Version info