Skip to content

Commit

Permalink
Update AlgebraOfGraphicsExt.jl (#25)
Browse files Browse the repository at this point in the history
* Update AlgebraOfGraphicsExt.jl

* Update AoG compat
  • Loading branch information
asinghvi17 authored Sep 16, 2024
1 parent 48e6645 commit d2c9954
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
9 changes: 1 addition & 8 deletions ext/AlgebraOfGraphicsExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d2c9954

Please sign in to comment.