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

geom_bin2d: wrong geometry size when bins=[n, 1] #1290

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

geom_bin2d: wrong geometry size when bins=[n, 1] #1290

ASmirnov-HORIS opened this issue Feb 3, 2025 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@ASmirnov-HORIS
Copy link
Collaborator

Example:

data = {
    'x': [0, 0, 1, 2],
    'y': [0, 0, 1, 2],
}

ggplot(data, aes('x', 'y')) + geom_bin2d(bins=[2, 1]) + geom_point(color="red")

Expected:


The same problem occurs when we swap bins items:

ggplot(data, aes('x', 'y')) + geom_bin2d(bins=[1, 2]) + geom_point(color="red")

or when both items are equal to 1:

ggplot(data, aes('x', 'y')) + geom_bin2d(bins=[1, 1]) + geom_point(color="red")

In all cases, the tiles should cover all the space where there are points.

@alshan alshan added this to the 2025Q1 milestone Feb 5, 2025
@alshan alshan added the bug Something isn't working label Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants