Skip to content

[BUG]: Weird behavior x-axis with log scale #7569

@LoganWlv

Description

@LoganWlv

Description

I have a scatter plot with 2 series, using layout.xaxis.type = 'log'.
I have two annotations, on which I applied log10 (cf. plotly/plotly.py#2580).
One is properly showing, while the other one seems to misplace annotations and series.

I've noticed the following:

  1. Removing the annotations makes it work
  2. Removing 1 digit for precision for annotations makes it work. More generally, reducing precision makes it work, but I'm unsure if it's a matter of luck or something I can rely on.

Screenshots/Video

Please see codepens below.

Steps to reproduce

Failing example

Working example

Notes

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions