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