From 3ad61bbe7f4bc487c0710534bd393ff1699a795b Mon Sep 17 00:00:00 2001 From: Emmanuelle Gouillart Date: Thu, 16 Jan 2020 14:06:51 -0500 Subject: [PATCH] modified trendline formatting --- packages/python/plotly/plotly/express/_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/python/plotly/plotly/express/_core.py b/packages/python/plotly/plotly/express/_core.py index f92d86a357b..21c0ca03cc1 100644 --- a/packages/python/plotly/plotly/express/_core.py +++ b/packages/python/plotly/plotly/express/_core.py @@ -236,7 +236,7 @@ def make_trace_kwargs(args, trace_spec, g, mapping_labels, sizeref): fit_results = sm.OLS(y.values, sm.add_constant(x.values)).fit() result["y"] = fit_results.predict() hover_header = "OLS trendline
" - hover_header += "%s = %f * %s + %f
" % ( + hover_header += "%s = %g * %s + %g
" % ( args["y"], fit_results.params[1], args["x"],