Skip to content

Commit b78d52c

Browse files
authored
modified trendline formatting (#2087)
1 parent 2dc3e51 commit b78d52c

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def make_trace_kwargs(args, trace_spec, g, mapping_labels, sizeref):
236236
fit_results = sm.OLS(y.values, sm.add_constant(x.values)).fit()
237237
result["y"] = fit_results.predict()
238238
hover_header = "<b>OLS trendline</b><br>"
239-
hover_header += "%s = %f * %s + %f<br>" % (
239+
hover_header += "%s = %g * %s + %g<br>" % (
240240
args["y"],
241241
fit_results.params[1],
242242
args["x"],

0 commit comments

Comments
 (0)