Skip to content

Conversation

@emmanuelle
Copy link
Contributor

Closes #1984.
For example

import plotly.express as px

df = px.data.tips()
fig = px.scatter(df, x="total_bill", y=1.e-6 * df.tip, trendline="ols")
fig.show()

Master:
image

Now:
image

Existing examples should not be modified, I checked with the doc example of trendline.

@nicolaskruchten
Copy link
Contributor

if existing examples are not impacted, then this is a clear win :)

💃

@emmanuelle emmanuelle merged commit b78d52c into master Jan 17, 2020
@nicolaskruchten nicolaskruchten added this to the v4.5.0 milestone Jan 22, 2020
@emmanuelle emmanuelle deleted the trendline-formatting branch February 3, 2020 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] Suboptimal number formatting for trendline coefficients in plotly.express

3 participants