-
-
Notifications
You must be signed in to change notification settings - Fork 350
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] GR backend: collision of colorbar_title and colorbar_ticks #4078
Comments
This does not look like gr |
Okay, I'm not sure if my semantics is correct. IMHO, I suppose there is an inadequate calculation for the margin between colorbar_title and ticks implemented in Plots.jl (and not in GR.jl or the GR framework itself) Lines 939 to 941 in 46e19d9
Unfortunately, I don't have the time right now to verify |
I am having the exact same issue here. I might be missing something, but I am wondering why this issue is closed, since the MWE clearly shows that the problem persists. Meanwhile, I cannot find any plot attributes under the "colorbar..." category that can set the padding for the colorbar, so I cannot adjust text locations manually. |
A partial attempt to fix this for Should we put the colorbar title to the left of the colorbar instead ? |
Details
I have encountered this strange bug when the GR backend is trying to compute the margin of the text between the colorbar ticks and the colorbar title.
Minimal working example:
Obviously, the colorbar title is stuck inside the ticks for the colorbar. This is only remedied by smaller ticks as can be seen e.g. like that:
This leads me to believe the GR backend has a fixed distance between colorbartitle and ticks.
I suppose this issue can be fixed easily if one knows where to dig into in order to compute the correct distance from ticks and title..
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: