-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Colourbar tick and frame linewidths #4314
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
Comments
The correct comparison is with theme elements. I believe they don't multiply by |
That indeed would be a fairer comparison, though also the theme elements appear to use the Lines 248 to 256 in 37eb64d
|
Then it probably should do so in the color bar also. |
Thanks so I thought as well. Should I leave a PR for you to consider? |
Yes, please go ahead. |
Hello there,
This is just a minor inconsistency, but in case this wasn't noticed yet, here it is. Apparently,
guide_colourbar()
uses theticks.linewidth
andframe.linewidth
parameter as-is, while in the rest of ggplot2 (as far as I can tell), almost every parameter for linewidth is calculated as below:Here is a reprex with exaggerated line sizes. You can notice when comparing the width of
geom_line()
versus the colourbar guide ticks. The lines appear of the same width when you adjustticks.linewidth = 5 * .pt
.Created on 2021-01-12 by the reprex package (v0.3.0)
Thanks for reading!
The text was updated successfully, but these errors were encountered: