Skip to content

histogram autobinning regression with TypedArray #3210

Closed

Description

@jonmmease

It looks like the new autobinning logic has a regression with typed arrays. See plotly/plotly.py#1257.

CodePen: https://codepen.io/jonmmease/pen/mQdXJK?editors=1010

Standard array (1.42.2):
newplot-1

Typed array (1.42.2):
newplot-2

Typed array (1.41.3):
newplot-3

Activity

  1. alexcjohnson commented on Nov 3, 2018

    @alexcjohnson
    Collaborator

    Wow that's weird - thanks @jonmmease ! No errors or anything, just renders incorrectly...

    I'll fix (and test) this specific bug, but @etpinard I'm not sure what would make a good generic test of typed array support - in principle we could rerun the entire image test suite, combing through data (and layout for numeric arrays and converting them to typed arrays first... that seems pretty heavy but how else could we catch silent bugs like this?

  2. added
    regression
    on Nov 5, 2018
  3. etpinard commented on Nov 5, 2018

    @etpinard
    Contributor

    that seems pretty heavy but how else could we catch silent bugs like this?

    That does seems pretty heavy, unless we can add two more CircleCI test containers 💰

    But maybe we could try to run all our mocks with typed arrays once locally and then lock failing cases (if any 😏 ) with jasmine tests.

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

    regression

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions