Skip to content

Commit a4a8ea7

Browse files
Fix BUG-7023 allow style when using errorbars
1 parent 1b84930 commit a4a8ea7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/plotting/_matplotlib/core.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -974,6 +974,9 @@ def _plot(
974974
kwds["xerr"] = np.array(kwds.get("xerr"))
975975
if "yerr" in kwds:
976976
kwds["yerr"] = np.array(kwds.get("yerr"))
977+
# GH 7023 allow setting plot style when using errorbars
978+
if style is not None:
979+
kwds["fmt"] = style
977980
return ax.errorbar(x, y, **kwds)
978981
else:
979982
# prevent style kwarg from going to errorbar, where it is unsupported

0 commit comments

Comments
 (0)