Hi, I'd like to create a 2d bin plot of this dataset:  But as soon as I try to plot it: ```python plot = ( pn.ggplot(df, pn.aes(x="score", y="residuals")) + pn.stat_bin_2d(binwidth=0.1) ) plot ``` I just see this output:  ## However, I know that there should be points at `score == 0`: ```python plot = ( pn.ggplot(df, pn.aes(x="score", y="residuals")) + pn.geom_point() ) plot ```  What is the issue here?
Activity
Hoeze commentedon Jul 8, 2022
Here is the dataset:
test.csv.gz
I am using plotnine v0.9.0
Hoeze commentedon Jul 11, 2022
Hi @has2k1, is there something we can do about?
This is a really critical bug as it creates misleading results.
has2k1 commentedon Jul 13, 2022
Minimal Reprex
Hoeze commentedon Aug 16, 2022
@has2k1 I'm sorry for bothering you, but is there any solution to this issue yet?
has2k1 commentedon Aug 17, 2022
I have a solution, I just wasn't satisfied with it. I will give it another look before the next couple of days and just publish it regardless.
Fix stat_bin_2d to handle zeros and negatives
Hoeze commentedon Sep 15, 2022
@has2k1 Thanks for fixing this bug.
Would you mind also releasing a new plotnine version having the bug fix?