-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Automatically remove the tick length when tick is blank #6069
Comments
I've raised a similar issue before in #4722, but now that more people would want this, I think we should only reserve space for the elements that are drawn even more. |
Thank you for pointing that out. I see the relevance of the previous issue. However, the current implementation of |
In situations when we want to remove margins, we must set both ticks and ticks length to remove the width/heigth of axis in the underlying gtable. As user would expect the empty size when they remove the axis using
element_blank()
.Issue in stackoverflow: https://stackoverflow.com/questions/40407498/how-to-remove-margins-in-ggplot2-chart
Please note the 10th height which is the height of the axis grob.
Created on 2024-09-01 with reprex v2.1.0
The text was updated successfully, but these errors were encountered: