viewer zoom is not synchronized when update the plot using plotly

In new version release on 2023 June 5, version 2023.06.0 build 421
Plot figure 1 using plotly, then click zoom to view the larger version in a window.
Then update plot, (draw a new plot figure 2).
before the viewer zoom would be updated at same time.
However, with the new version the viewer zoom will update only after running figure 2 again.

Test plot 1

library(plotly)

x <- c(1:100)
random_y <- rnorm(100, mean = 5)
data <- data.frame(x, random_y)

fig <- plot_ly(data, x = ~x, y = ~random_y, type = 'scatter', mode = 'lines')

fig

Test plot 2

library(plotly)

x <- c(1:100)
random_y <- rnorm(100, mean = 1)
data <- data.frame(x, random_y)

fig <- plot_ly(data, x = ~x, y = ~random_y, type = 'scatter', mode = 'lines')

fig

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.