Skip to content

modified trendline formatting #2087

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 17, 2020
Merged

modified trendline formatting #2087

merged 1 commit into from
Jan 17, 2020

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
2 participants