Skip to content

Instantly share code, notes, and snippets.

@jkrumbiegel
Created January 28, 2022 17:04
Show Gist options
  • Save jkrumbiegel/c19eb1673cf7a4e0edafa367ace52e65 to your computer and use it in GitHub Desktop.
Save jkrumbiegel/c19eb1673cf7a4e0edafa367ace52e65 to your computer and use it in GitHub Desktop.
one legend per line with valign
f = Figure()
ax = Axis(f[1, 1])
ls = map(0:3) do i
lines!(ax, 1:10, (1:10) .* i)
end
for (i, l) in zip(0:3, ls)
Legend(f[1, 2], [l], ["$i"], framevisible = false, padding = (0, 0, 0, 0),
valign = i / 3)
end
f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment