Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Legend overrides #570

Merged
merged 4 commits into from
Oct 7, 2024
Merged

Legend overrides #570

merged 4 commits into from
Oct 7, 2024

Conversation

jkrumbiegel
Copy link
Member

Uses changes in Makie 0.21.13 to allow overriding legend element attributes via a legend keyword:

df = (;
    x = randn(200) .+ repeat([0, 3], 100),
    y = randn(200) .+ repeat([0, 3], 100),
    group = repeat(["A", "B"], 100)
)

spec = data(df) *
    mapping(:x, :y, color = :group) *
    visual(Scatter; markersize = 5, legend = (; markersize = 15))

draw(spec)
image

@jkrumbiegel jkrumbiegel merged commit 448d330 into master Oct 7, 2024
5 checks passed
@jkrumbiegel jkrumbiegel deleted the jk/legend-overrides branch October 7, 2024 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant