Skip to content

Seaborn histplot with one element gives "bins must be positive" error #2721

@AnavSood

Description

@AnavSood

For certain values of x and y > 0, if I run sns.histplot([x], binwidth=y) I get ValueError: `bins` must be positive, when an integer. For example, run sns.histplot([0.49928], binwidth=0.03).

See here for discussion: https://stackoverflow.com/questions/70553730/seaborn-histplot-with-one-element-gives-bins-must-be-positive-error

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions