-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
[BUG] labels are too close with LaTeXStrings #3884
Comments
Haven't I explained to use There is no spacing (that's why Here with |
This is related: #3598 Yet I wander if the default spacing should not be larger already (getting overlapping labels is not acceptable, while getting a larger spacing is about taste. With default spacing:
And with
|
Yes, but in your mwe, I don't see any overlap. |
Ok, in the MWE they do not overlap, they are very, very close, such that with normal resolutions they seem to overlap. The
It is not completely clear where/when the keywords should work. Also, the |
Just a side comment: If you or anyone else feels that this is not a bug, or the same bug, than any other, please feel free to close it. I just don't think that the alternatives we have are good enough for the time being. |
The issue with adding some spacing is that it is subjective. That's why we do not add extra space as there is no consensus on what amount of default space to add (instead with GR we measure the maxima of all text heights, and use it to create the legend box). We provide backend dependent ways to add spacing and I think that this is the way to make everyone happy. To me this looks like a won't fix, but I'll leave this open if a majority wants to change this. |
I agree that "how much" space is subjective. But the current status for legends which use From: https://discourse.julialang.org/t/plots-jl-labels-overlap-if-using-latexstrings/69936 Since it is subjective, having "more" is probably safer than having "less" (with the possible complication that you can tell me that |
Also note that the default is not working with LaTeXStrings. Without it, even with the same fonts, it works fine:
While with LaTeXStrings, we get:
Maybe the problem is somewhere else, in the recognition of the font height when using |
I haven't checked it, but it should work (just a multiplicative factor of |
Details
The labels get overlapped here:
It is not a GR issue (alone), as with GR alone it works:
Backends
This bug occurs on ( insert
x
below )Versions
Plots.jl version:
Backend version (
]st -m <backend(s)>
):Output of
versioninfo()
:The text was updated successfully, but these errors were encountered: