plotly / plotly.R

An interactive graphing library for R
https://plotly-r.com
Other
2.54k stars 622 forks source link

Regression bug: points jump around when LASSOing with webGL #1215

Open daattali opened 6 years ago

daattali commented 6 years ago

This was introduced some time between 2018-01-26 to 2018-03-07

df <- data.frame(x = runif(10000, min = 0, max = 20000), y = runif(10000, min = 0, max = 20000))
plot_ly(df, x = ~x, y= ~y) %>% add_markers() %>% toWebGL()

When the above code is run with plotly from 2018-01-26, selecting points works fine. But when run with a version from 2018-03-07, selecting points causes them to jump.

See video below

calculatingkindgar-max-14mb

(originally reported in #1211)

cpsievert commented 6 years ago

This might be a Windows-specific thing as well -- seems to work ok for me.

cpsievert commented 6 years ago

As I mentioned in https://github.com/ropensci/plotly/issues/1216#issuecomment-371520935 I'd would be a huge help if you could test this out with pure plotly.js (but use specific plotly.js release versions https://github.com/plotly/plotly.js/releases)