Skip to content

Commit

Permalink
fix: linestyle with errorbars
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzejnovak committed Nov 3, 2021
1 parent 4a64686 commit 8f373d4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/mplhep/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 8f373d4

Please sign in to comment.