diff --git a/seaborn/categorical.py b/seaborn/categorical.py index 6b4d85dae6..a469ce8eed 100644 --- a/seaborn/categorical.py +++ b/seaborn/categorical.py @@ -600,7 +600,7 @@ def get_props(element, artist=mpl.lines.Line2D): if not fill and linewidth is None: linewidth = mpl.rcParams["lines.linewidth"] - + bootstrap = plot_kws.pop("bootstrap", mpl.rcParams["boxplot.bootstrap"]) plot_kws.setdefault("shownotches", plot_kws.pop("notch", False)) box_artist = mpl.patches.Rectangle if fill else mpl.lines.Line2D @@ -626,7 +626,8 @@ def get_props(element, artist=mpl.lines.Line2D): grouped = sub_data.groupby(self.orient)[value_var] value_data = [x.to_numpy() for _, x in grouped] - stats = pd.DataFrame(mpl.cbook.boxplot_stats(value_data, whis=whis)) + stats = pd.DataFrame(mpl.cbook.boxplot_stats(value_data, whis=whis, + bootstrap=bootstrap)) positions = grouped.grouper.result_index.to_numpy(dtype=float) orig_width = width * self._native_width