Skip to content

stat_bin2d cuts values #604

Closed
Closed
@Hoeze

Description

@Hoeze

Hi, I'd like to create a 2d bin plot of this dataset:
grafik

But as soon as I try to plot it:

plot = (
    pn.ggplot(df, pn.aes(x="score", y="residuals"))
    + pn.stat_bin_2d(binwidth=0.1)
)
plot

I just see this output:
grafik

However, I know that there should be points at score == 0:

plot = (
    pn.ggplot(df, pn.aes(x="score", y="residuals"))
    + pn.geom_point()
)
plot

grafik

What is the issue here?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions