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

Multi-panel plot readjusts plot padding #122

Open
forbiddenpersimmon opened this issue May 23, 2023 · 0 comments
Open

Multi-panel plot readjusts plot padding #122

forbiddenpersimmon opened this issue May 23, 2023 · 0 comments

Comments

@forbiddenpersimmon
Copy link
Contributor

When making multi-panel plot, BPG changes passed in trellis objects padding in order to align them. In an edge case where y-axis label and tick mark labels are moved to the right side in one plot, this causes the actual area/axes of the plots to no longer line up.

When labels and ticks are on the left, no problems with padding and alignment:
left yaxis label

When on the right, left side of plots are aligned but right side is squished:
right yaxis label

Adjusting padding of individual plots does not work since create.multipanelplot readjusts padding on its own after plots are passed in. Current workaround is to make and pass a text grob to plot.objects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant