diff --git a/Project.toml b/Project.toml index 804620e..72dcf4a 100644 --- a/Project.toml +++ b/Project.toml @@ -20,7 +20,7 @@ KernelDensity = "0.6" Makie = "0.20, 0.21" StatsBase = "0.34" julia = "1.9" -AlgebraOfGraphics = "0.7, 1" +AlgebraOfGraphics = "0.8" [extras] CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0" diff --git a/ext/AlgebraOfGraphicsExt.jl b/ext/AlgebraOfGraphicsExt.jl index 70e3281..f57c3c0 100644 --- a/ext/AlgebraOfGraphicsExt.jl +++ b/ext/AlgebraOfGraphicsExt.jl @@ -14,14 +14,7 @@ end function AOG.legend_elements(T::Type{Beeswarm}, attributes, scale_args::AOG.MixedArguments) - [Makie.MarkerElement( - color = AOG._get(T, scale_args, attributes, :color), - markerpoints = [Point2f(0.5, 0.5)], - marker = AOG._get(T, scale_args, attributes, :marker), - markerstrokewidth = AOG._get(T, scale_args, attributes, :strokewidth), - markersize = AOG._get(T, scale_args, attributes, :markersize), - markerstrokecolor = AOG._get(T, scale_args, attributes, :strokecolor), - )] + return AOG.legend_elements(Makie.Scatter, attributes, scale_args) # same legend as Scatter end end