plotly.js icon indicating copy to clipboard operation
plotly.js copied to clipboard

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

Open LoganWlv opened this issue 4 months ago • 0 comments

Description

I have a scatter plot with 2 series, using layout.xaxis.type = 'log'. I have two annotations, on which I applied log10 (cf. https://github.com/plotly/plotly.py/issues/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

LoganWlv avatar Oct 01 '25 00:10 LoganWlv