Skip to content

heatmapgl TODO list #1080

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

Closed
4 tasks done
etpinard opened this issue Oct 25, 2016 · 18 comments · Fixed by #1197
Closed
4 tasks done

heatmapgl TODO list #1080

etpinard opened this issue Oct 25, 2016 · 18 comments · Fixed by #1197
Labels
feature something new
Milestone

Comments

@etpinard
Copy link
Contributor

etpinard commented Oct 25, 2016

Before getting merged into the main plotly.js dist bundle, we need to make sure following problems are addressed

  • heatmapgl test-images are not reproducible. Maybe this is just a matter of bumping the gl-shader requirement.
  • top-most and right-most points aren't being catch by the hover picking routine

gifrecord_2016-10-25_093142

  • double-check that we are handling NaNs correctly. One good test would be to Plotly.restyle(gd, 'type', 'heatmapgl') all our heatmap test mocks.
  • include only attributes that are relevant to the gl2d version (instead of simply copying the heatmap attributes). For example, heatmapgl doesn't support zsmooth, xgap and ygap.

See the heatmapgl-primetime branch for more some WIP work.

@etpinard etpinard added the feature something new label Oct 25, 2016
@etpinard etpinard added this to the On-par gl2d milestone Oct 25, 2016
@etpinard
Copy link
Contributor Author

Maybe @dfcreative would be interested in looking some of the items ⏫ ?

cc @monfera @jackparmer

@dy
Copy link
Contributor

dy commented Oct 25, 2016

Sure!

@jackparmer
Copy link
Contributor

That would be awesome @dfcreative ! Want to come by the office for lunch this Friday?

@dy
Copy link
Contributor

dy commented Oct 25, 2016

@jackparmer sure!

@dy
Copy link
Contributor

dy commented Oct 28, 2016

Ok, as for

top-most and right-most points aren't being catch

that seems to be wrongly rendered pickBuffer:
image

only 9 levels out of 10 are here. It does not contain ids >= 90 and whole decimals 10, 20, 30, 40, 50, 60, 70, 80, which refer to the last row/col

@dy
Copy link
Contributor

dy commented Oct 28, 2016

test-images are not reproducible

All the difference I see across all the heatmap tests is in fonts rendering and antialiasing

original:
image
image

result:
image
image

Can it be the reason of failing tests @etpinard?

@etpinard
Copy link
Contributor Author

@dfcreative It's similar to https://github.com/plotly/streambed/issues/6307#issuecomment-231818023

Generating one heatmapgl mock at a time works fine. But inside a loop, image generation is off.

@dy
Copy link
Contributor

dy commented Oct 28, 2016

Ok, the problem of top-right points is in this line, which ignores edge vertices. It is easily fixable for the x axis by adding dx, but difficult for the y axis, because pick shader interpolates value.
A fact that pickBuffer in some magic way transforms float array of ids into vec4s of ints adds to the complexity of issue.

@dy
Copy link
Contributor

dy commented Nov 4, 2016

Ok, top-most and right-most picking problem should be fixed by gl-vis/gl-heatmap2d#2

@jackparmer
Copy link
Contributor

Hey @dfcreative - Do you have an idea for this one by chance?

heatmapgl test-images are not reproducible. Maybe this is just a matter of bumping the gl-shader requirement.

What do you think is your timeline for the other 2?

@dy
Copy link
Contributor

dy commented Nov 10, 2016

@jackparmer all heatmap related tests are reproduced fine on my machine, I guess I should discuss that with @etpinard this friday, to see the issue in action to understand what's wrong.

@dy
Copy link
Contributor

dy commented Nov 11, 2016

@etpinard ok, last gl-vis/gl-heatmap2d#2 should fix the images/picking issues

@etpinard
Copy link
Contributor Author

@dfcreative nice job. Your patch even works on CI:

image

The first two items are ✅

@etpinard
Copy link
Contributor Author

Oh. I spoke too soon. Picking is still broken for a few other mocks.

For example, Earth_heatmap when replace data[0].type from 'heatmap' to 'heatmapgl':

gifrecord_2016-11-15_114210

@etpinard
Copy link
Contributor Author

Same story for the 4 mock:

gifrecord_2016-11-15_114345

@dy
Copy link
Contributor

dy commented Nov 18, 2016

@etpinard gl-vis/gl-heatmap2d@04cae76 should fix picking, tested on various mocks. My render of 4.json is different though, I guess because of custom layout options
image. Should it be fixed?

@etpinard
Copy link
Contributor Author

etpinard commented Nov 18, 2016

@dfcreative thanks! I'll give it a test 🚗 on Monday.

@etpinard
Copy link
Contributor Author

etpinard commented Nov 24, 2016

@dfcreative with your last commit, this is looking really good. I'll spend a few more minutes double-checking, but looks like we're really to something mergeable. 🍻

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 a pull request may close this issue.

3 participants