From f7f783134f0f1577ce142773e21639973743fc8c Mon Sep 17 00:00:00 2001 From: Milo Trujillo Date: Fri, 2 Apr 2021 13:08:27 -0400 Subject: [PATCH] x_estimator bars now inherit scatter_kws alpha x_estimator error bars were previously always opaque, but now inherit alpha settings from scatterplot settings, since the error bars replace the scatterplot --- seaborn/regression.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/seaborn/regression.py b/seaborn/regression.py index e302149bd1..aad95a6bb4 100644 --- a/seaborn/regression.py +++ b/seaborn/regression.py @@ -397,6 +397,8 @@ def scatterplot(self, ax, kws): else: # TODO abstraction ci_kws = {"color": kws["color"]} + if "alpha" in kws: + ci_kws["alpha"] = kws["alpha"] ci_kws["linewidth"] = mpl.rcParams["lines.linewidth"] * 1.75 kws.setdefault("s", 50)