JetBrains / JetBrains/lets-plot

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

Open
#1,290 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
1.8k
Forks
60
PR merge metrics
No merged PRs in 30d

Description

Example:

```python
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:

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

or when both items are equal to 1:

```python
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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.