Skip to content

Commit 6f3b5c4

Browse files
scattergl doesn't support orientation
1 parent a376c6d commit 6f3b5c4

File tree

1 file changed

+6
-5
lines changed
  • packages/python/plotly/plotly/express

1 file changed

+6
-5
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1565,11 +1565,12 @@ def make_figure(args, constructor, trace_patch=None, layout_patch=None):
15651565
and args["animation_frame"] is None
15661566
)
15671567
):
1568-
constructor_to_use = (
1569-
go.Scattergl
1570-
if constructor_to_use == go.Scatter
1571-
else go.Scatterpolargl
1572-
)
1568+
if constructor_to_use == go.Scatter:
1569+
constructor_to_use = go.Scattergl
1570+
if "orientation" in trace_patch:
1571+
del trace_patch["orientation"]
1572+
else:
1573+
constructor_to_use = go.Scatterpolargl
15731574
# Create the trace
15741575
trace = constructor_to_use(name=trace_name)
15751576
if trace_spec.constructor not in [

0 commit comments

Comments
 (0)