Skip to content

Implement connect gaps for 2d WebGL plots #449

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

Merged
merged 4 commits into from
May 5, 2016

Conversation

mikolalysenko
Copy link
Contributor

@mikolalysenko mikolalysenko commented Apr 19, 2016

This PR implements connect gaps for 2D webgl plots. It requires the following upgrades to gl-line2d:

gl-vis/gl-line2d@42172ed

This should solve the following issue:

https://github.com/plotly/phoenix-integration/issues/44

A new test case (gl2d_connect_gaps) was added to the dashboard to verify that the feature is working:

screen shot 2016-04-19 at 3 19 44 pm

CC @bpostlethwaite @etpinard

@bpostlethwaite
Copy link
Member

cc/ @monfera

@etpinard
Copy link
Contributor

etpinard commented Apr 20, 2016

@mikolalysenko Something broke the gl2d_14.json mock:

image

that line should be on follow the marker points.

@@ -28,6 +28,7 @@
"cibuild": "node tasks/cibundle.js",
"watch": "node tasks/watch_plotly.js",
"lint": "eslint . || true",
"lint-fix": "eslint . --fix",
Copy link
Contributor

Choose a reason for hiding this comment

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

nicely done!

@mikolalysenko
Copy link
Contributor Author

@etpinard Looks like the xData and yData arrays aren't getting initialized correctly for that plot. I can take a look at it next time I get a day to work.

linePositions = new Float32Array(2 * x.length);

for(i=0; i<x.length; ++i) {
linePositions[p++] = x[i];
Copy link
Contributor

Choose a reason for hiding this comment

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

you might have to ♻️ this block.

@mikolalysenko
Copy link
Contributor Author

@etpinard just a quick ping: I fixed up the problem with the axes computations on some plots. Let me know if this looks good now.

@etpinard
Copy link
Contributor

etpinard commented May 2, 2016

@mikolalysenko gl2d_14.json still isn't quite right:

image

The logs coordinates show up as NaN on hover.

@mikolalysenko
Copy link
Contributor Author

Alright, taking another look

@mikolalysenko
Copy link
Contributor Author

Alright, I think I got the picking issue fixed. Let me know if there is anything else out of the ordinary here.

@etpinard
Copy link
Contributor

etpinard commented May 4, 2016

@mikolalysenko Looks great. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants