8000 Fix scattergl selection by dy · Pull Request #2267 · plotly/plotly.js · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@dy
Copy link
Contributor
@dy dy commented Jan 19, 2018

Fixes #2266

@alexcjohnson
Copy link
Collaborator

Thanks @dfcreative - is there a test we can add that shows that this fixes the bug?

@dy
Copy link
Contributor Author
dy commented Jan 22, 2018

@alexcjohnson added selection test at 348d4d0

var x = [], y = [];
for(var i = 0; i < 2e4; i++) {
x.push(Math.random());
y.push(Math.random());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's probably an infinitesimal chance that this will cause any problems, but I still don't like having random calls in a test suite. If you really want something random-looking, as opposed to some simple formula, consider appropriating something reproducible like we used for box plot jitter

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @alexcjohnson! Fixed in 39be256

@alexcjohnson
Copy link
Collaborator

Beautiful, thanks! 💃

@jackparmer
Copy link
Contributor

cc @cpsievert

@dy
Copy link
Contributor Author
dy commented Jan 23, 2018

Closed by cb2729e

@dy dy closed this Jan 23, 2018
@dy dy deleted the reglscatter-fix branch January 23, 2018 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

0