Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Fixhexbin
marginals and log scaling#21039
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
@@ -781,7 +781,8 @@ def test_hexbin_log(): | |||
y = np.power(2, y * 0.5) | |||
fig, ax = plt.subplots() | |||
h = ax.hexbin(x, y, yscale='log', bins='log') | |||
h = ax.hexbin(x, y, yscale='log', bins='log', | |||
marginals=True, reduce_C_function=np.sum) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
looks like there is no linear scale marginals=True? Can we add that test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I think this should be in 3.5 so lets merge. My request for a test can be dealt with later...
@meeseeksdev backport to v3.5.x |
Fix `hexbin` marginals and log scaling
Fix `hexbin` marginals and log scaling
Uh oh!
There was an error while loading.Please reload this page.
PR Summary
This cleans up and fixes hexbin marginals. In particular:
Also don't add 1 to log-scaled bins (originally in#21038).
Current master:

With this PR:

PR Checklist
pytest
passes).flake8
on changed files to check).flake8-docstrings
and runflake8 --docstring-convention=all
).doc/users/next_whats_new/
(follow instructions in README.rst there).doc/api/next_api_changes/
(follow instructions in README.rst there).