Skip to content

Commit 619c693

Browse files
clarify
1 parent d0ab458 commit 619c693

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

Diff for: packages/python/plotly/plotly/express/_core.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,9 @@ def make_trace_spec(args, constructor, attrs, trace_patch):
869869
# Add trendline trace specifications
870870
if "trendline" in args and args["trendline"]:
871871
trace_spec = TraceSpec(
872-
constructor=go.Scattergl if constructor == go.Scattergl else go.Scatter,
872+
constructor=go.Scattergl
873+
if constructor == go.Scattergl # could be contour
874+
else go.Scatter,
873875
attrs=["trendline"],
874876
trace_patch=dict(mode="lines"),
875877
marginal=None,

0 commit comments

Comments
 (0)