Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix scattergl mising points plot and react #4323

Merged
merged 3 commits into from
Oct 31, 2019
Merged

Conversation

archmoj
Copy link
Contributor

@archmoj archmoj commented Oct 31, 2019

Fix #2334, #3405 and #3751.
Bump point cluster 3.1.8, regl-scatter2d 3.1.7 and regl-splom 1.0.8 and update snap according to data length.
@plotly/plotly_js

- bump regl-scatter2d 3.1.7
- bump regl-splom 1.0.8
@archmoj archmoj added bug something broken status: reviewable regression this used to work labels Oct 31, 2019
var x = [];
var y = [];
for(var i = 0; i < num; i++) {
x.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.

Random numbers are dangerous in tests. If you really need this to look like random numbers, you can use Lib.pseudoRandom() (preceded by Lib.seedPseudoRandom()) as a repeatable alternative.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@alexcjohnson thanks for the review.
Good call! Addressed for scattergl_test and other jasmine tests in 902b084.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Beautiful, thank you for extending that to the rest of the test suite!

Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

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

Looks great, patch away! 💃

@archmoj archmoj merged commit 405b9ed into master Oct 31, 2019
@archmoj archmoj deleted the bump-point-cluster-3.1.8 branch October 31, 2019 18:55
if(opts.marker) {
opts.marker.snap = stash.tree || TOO_MANY_POINTS;
}
if(opts.marker) opts.marker.snap = len;
Copy link
Contributor

Choose a reason for hiding this comment

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

Ha - there is it!

That's the piece I was missing. Thank you very much @archmoj - this is probably the best bug fix for the library in 2019.

@etpinard
Copy link
Contributor

I'm curious @archmoj does the new mock gl2d_clustering take a long time to render?

@archmoj
Copy link
Contributor Author

archmoj commented Nov 18, 2019

I'm curious @archmoj does the new mock gl2d_clustering take a long time to render?

I don't think so. Let me create a codepen to investigate the diff.
@etpinard thanks for the review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken regression this used to work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing data in scattergl plot when I go juste above 10000 points (regression)
3 participants