Skip to content

heatmapgl TODO list #1080

Closed
Closed

Description

@etpinard

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.

Activity

  1. added
    feature
    on Oct 25, 2016
  2. added this to the On-par gl2d milestone on Oct 25, 2016
  3. etpinard commented on Oct 25, 2016

    @etpinard
    ContributorAuthor

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

    cc @monfera @jackparmer

  4. dy commented on Oct 25, 2016

    @dy
    Contributor

    Sure!

  5. jackparmer commented on Oct 25, 2016

    @jackparmer
    Contributor

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

  6. dy commented on Oct 25, 2016

    @dy
    Contributor
  7. dy commented on Oct 28, 2016

    @dy
    Contributor

    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

  8. dy commented on Oct 28, 2016

    @dy
    Contributor

    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?

  9. etpinard commented on Oct 28, 2016

    @etpinard
    ContributorAuthor

    @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.

  10. dy commented on Oct 28, 2016

    @dy
    Contributor

    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.

  11. dy commented on Nov 4, 2016

    @dy
    Contributor

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

  12. jackparmer commented on Nov 9, 2016

    @jackparmer
    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?

  13. dy commented on Nov 10, 2016

    @dy
    Contributor

    @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.

  14. dy commented on Nov 11, 2016

    @dy
    Contributor

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

  15. etpinard commented on Nov 15, 2016

    @etpinard
    ContributorAuthor

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

    image

    The first two items are ✅

  16. etpinard commented on Nov 15, 2016

    @etpinard
    ContributorAuthor

    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

  17. etpinard commented on Nov 15, 2016

    @etpinard
    ContributorAuthor

    Same story for the 4 mock:

    gifrecord_2016-11-15_114345

  18. dy commented on Nov 18, 2016

    @dy
    Contributor

    @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?

  19. etpinard commented on Nov 18, 2016

    @etpinard
    ContributorAuthor

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

  20. etpinard commented on Nov 24, 2016

    @etpinard
    ContributorAuthor

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions