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

coord_fixed: wrong aspect ratio when using facet_wrap with scales='free' #1299

Open
ASmirnov-HORIS opened this issue Feb 17, 2025 · 0 comments
Milestone

Comments

@ASmirnov-HORIS
Copy link
Collaborator

Example:

data = {
    'x': [0, 0, 2, 0, 0, 8],
    'y': [0, 1, 0, 0, 2, 0],
    'f': ['a'] * 3 + ['b'] * 3,
}

ggplot(data, aes('x', 'y')) + \
    geom_point() + \
    coord_fixed(ratio=1) + \
    facet_wrap(facets='f', scales='free', nrow=1)

Output, where the grid of coordinates is not a square grid:

Image

Note: If one tries to build a similar example in ggplot2, it gives the error:

`coord_fixed()` doesn't support free scales.
@alshan alshan added this to the New milestone Feb 17, 2025
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

2 participants