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

Default bar width calculated panel-wise #5125

Merged
merged 4 commits into from
Mar 23, 2023

Conversation

teunbrand
Copy link
Collaborator

This PR aims to fix #4336.

Briefly, instead of determining the global resolution for calculating the default width, it now considers panel-wise resolution.

@thomasp85
Copy link
Member

Should this somehow be optional? Couldn't you imagine you'd want the same width on all panels despite varying data resolution?

@teunbrand
Copy link
Collaborator Author

I don't think it would make a lot of sense to make this optional, but I'm willing to entertain other ideas. To be clear: this PR will not introduce variable widths per panel, the bars in all panels will still have the same width. It is just that the resolution to determine the global width is calculated per panel, so that cross-panel resolution will become irrelevant (as I think it should be).

Copy link
Member

@thomasp85 thomasp85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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

Successfully merging this pull request may close these issues.

Default width of geom_bar/geom_col under facetting
2 participants