Skip to content

Instantly share code, notes, and snippets.

@jkrumbiegel
Created May 31, 2024 11:32
Show Gist options
  • Save jkrumbiegel/1709417a870cb4aef09b2b8b04554fc2 to your computer and use it in GitHub Desktop.
Save jkrumbiegel/1709417a870cb4aef09b2b8b04554fc2 to your computer and use it in GitHub Desktop.
Makie override axis scatter markersize in Legend
f, ax, sc = scatter(cumsum(randn(1000)), markersize = 3, label = "Scatter")
leg = Legend(f[1, 2], ax)
leg.entrygroups[][1][2][1].elements[1].attributes.markersize = Observable(10)
notify(leg.entrygroups)
f
@jkrumbiegel
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment