Skip to content

Log bar autorange fix #1475

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 2 commits into from
Mar 14, 2017
Merged

Log bar autorange fix #1475

merged 2 commits into from
Mar 14, 2017

Conversation

alexcjohnson
Copy link
Collaborator

fixes #1352 - makes autorange work with bar traces on log axes

@etpinard please review

@etpinard etpinard added this to the v1.25.0 milestone Mar 14, 2017
}
}
maybeExpand(barTop);
maybeExpand(barBase);
Copy link
Contributor

Choose a reason for hiding this comment

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

very nice simplification.

});

var ya = gd._fullLayout.yaxis;
expect(Axes.getAutoRange(ya)).toBeCloseToArray([1.496, 2.027], undefined, '(ya.range)');
Copy link
Contributor

@etpinard etpinard Mar 14, 2017

Choose a reason for hiding this comment

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

Nice tests! I wouldn't be opposed to adding a bar log image test too if you're up for it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Could be nice, but for now I think I'd better move on.

@etpinard
Copy link
Contributor

etpinard commented Mar 14, 2017

💃 image test or not.

Thanks a lot! That would have taken me at least a full day to go fix this.

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.

Autorange for log plot doesn't show all the data
2 participants