Skip to content

Commit 298f5ce

Browse files
committed
we only need to check barmode in layout_patch, not args
1 parent db1e0d9 commit 298f5ce

File tree

1 file changed

+1
-1
lines changed
  • packages/python/plotly/plotly/express

1 file changed

+1
-1
lines changed

packages/python/plotly/plotly/express/_core.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2558,7 +2558,7 @@ def make_figure(args, constructor, trace_patch=None, layout_patch=None):
25582558
)
25592559

25602560
# Set 'offsetgroup' only in group barmode (or if no barmode is set)
2561-
barmode = args.get("barmode") or layout_patch.get("barmode")
2561+
barmode = layout_patch.get("barmode")
25622562
if trace_spec.constructor in [go.Bar, go.Box, go.Violin, go.Histogram] and (
25632563
barmode == "group" or barmode is None
25642564
):

0 commit comments

Comments
 (0)