Created
January 28, 2022 17:04
-
-
Save jkrumbiegel/c19eb1673cf7a4e0edafa367ace52e65 to your computer and use it in GitHub Desktop.
one legend per line with valign
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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