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

[FR] control padding inside legend #3558

Closed
ptoche opened this issue Jun 7, 2021 · 0 comments · Fixed by #3598
Closed

[FR] control padding inside legend #3558

ptoche opened this issue Jun 7, 2021 · 0 comments · Fixed by #3598
Labels
enhancement improving existing functionality

Comments

@ptoche
Copy link

ptoche commented Jun 7, 2021

Feature request: add the option to increase padding inside legend, particularly to avoid labels overlap. Fine control over horizontal/vertical spacing would be even better, but a general padding argument would probably cover most cases.

The issue is described here with a workaround. Code copied for convenience.

using LaTeXStrings, Plots; gr()

y1, y2 = rand(100), rand(100)
histogram(y1, ylims = (0,50), label = L"\left\Vert\beta_{1}^{2}-\beta_{2}^{2}\right\Vert")
histogram!(y2, label = L"\left\Vert\beta_{2}^{2}-\beta_{3}^{2}\right\Vert", legendfontsize=10)

a

b

@BeastyBlacksmith BeastyBlacksmith added the enhancement improving existing functionality label Jun 9, 2021
t-bltg added a commit to t-bltg/Plots.jl that referenced this issue Jul 2, 2021
t-bltg added a commit to t-bltg/Plots.jl that referenced this issue Jul 2, 2021
t-bltg added a commit to t-bltg/Plots.jl that referenced this issue Jul 2, 2021
t-bltg added a commit to t-bltg/Plots.jl that referenced this issue Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement improving existing functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants