Skip to content

histogram2d fixes #3922

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 30, 2019
Merged

histogram2d fixes #3922

merged 4 commits into from
May 30, 2019

Conversation

etpinard
Copy link
Contributor

@plotly/plotly_js This PR starts with a fix for #3909 then follow-up with two more histogram2d* bug fixes.

etpinard added 4 commits May 29, 2019 12:28
- this fixes some shared histogram2d (via bingroup) edge cases
- this fixes a performance regression from #3845
- this removed the annoying `x: NaN` from histogram2d
  hover labels
@etpinard etpinard added bug something broken status: reviewable labels May 29, 2019
@@ -232,8 +232,8 @@ function calcAllAutoBins(gd, trace, pa, mainData, _overlayEdgeCase) {

// all but the first trace in this group has already been marked finished
// clear this flag, so next time we run calc we will run autobin again
if(trace._autoBinFinished) {
delete trace._autoBinFinished;
if(trace['_' + mainData + 'autoBinFinished']) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixup from #3909

As now both histogram and histogram2d* traces go through calcAllAutoBins, we need to split the "has autoBin finished` logic into x and y values.

@@ -0,0 +1,756 @@
{
"data": [
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -0,0 +1,756 @@
{
"data": [
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This one looks like:

image

on master.

@archmoj
Copy link
Contributor

archmoj commented May 30, 2019

Nicely done.
💃 💃

@etpinard etpinard merged commit 60adfe9 into master May 30, 2019
@etpinard etpinard deleted the histogram2d-single-sample-fix branch May 30, 2019 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants