Skip to content

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

Closed
@emmanuelle

Description

@emmanuelle

In https://github.com/plotly/plotly.py/blob/master/packages/python/plotly/plotly/express/_core.py#L239 we should use %g instead of %f so that enough significant digits are displayed even for very small numbers (for the slope in particular). Raised by https://community.plot.ly/t/how-to-extend-ols-trendline/32270

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions