Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions seaborn/distributions.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,10 +400,12 @@ def plot_univariate_histogram(
_check_argument("element", ["bars", "step", "poly"], element)

auto_bins_with_weights = (
"weights" in self.variables
and estimate_kws["bins"] == "auto"
and estimate_kws["binwidth"] is None
and not estimate_kws["discrete"]
isinstance(estimate_kws["bins"], str) and (
"weights" in self.variables
and estimate_kws["bins"] == "auto"
and estimate_kws["binwidth"] is None
and not estimate_kws["discrete"]
)
)
if auto_bins_with_weights:
msg = (
Expand Down