MakieOrg / SwarmMakie.jl

Beeswarm plots for Makie.jl!

Home Page:https://makieorg.github.io/SwarmMakie.jl/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Padding

asinghvi17 opened this issue · comments

image (1)

Would be nice to allow for some padding on top of markersize here, but I'm not sure how it would work with markersize semantics.

I guess we can have a scale_factor type of thing, which is 1/padding where padding is an attribute. The layout algorithm would be passed scale_factor .* markersize, and we should make clear that markersize must be Vec2f if given in a vector (i.e., markersize::Real, markersize::NTuple{2, <: Real}, markersize::Vec2f, markersize::Vector{<: Real}, markersize::Vector{<: Vec2f}) are the acceptable types here. Only these have correct multiplication semantics with scalars.