diff --git a/src/mplhep/plot.py b/src/mplhep/plot.py index 69d7c73d..b2780c3c 100644 --- a/src/mplhep/plot.py +++ b/src/mplhep/plot.py @@ -388,9 +388,8 @@ def iterable_not_string(arg): ) if yerr is not None or w2 is not None: - _kwargs = soft_update_kwargs( - _kwargs, {"color": _s.get_edgecolor(), "linestyle": "none"} - ) + _kwargs = soft_update_kwargs(_kwargs, {"color": _s.get_edgecolor()}) + _kwargs["linestyle"] = "none" _e = ax.errorbar( _bin_centers, h[i],