Skip to content

Set norm to log if bins=='log' in hexbin #9223

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 1 commit into from
Jul 12, 2018

Conversation

dstansby
Copy link
Member

Fixes #7842. I'm pretty sure that it doesn't make sense to supply both bins and norm, so have warned the user if both are supplied. I may be wrong though...

@dstansby dstansby added this to the 2.2 (next next feature release) milestone Sep 25, 2017
Copy link
Member

@jklymak jklymak left a comment

Choose a reason for hiding this comment

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

This looks good.

I find the name bins for that argument very lamentable, and some of the docstring doesn't make a lick of sense to me. What does the following mean?

If an integer, divide the counts in the specified number
            of bins, and color the hexagons accordingly.

            If a sequence of values, the values of the lower bound of
            the bins to be used.

@dstansby
Copy link
Member Author

Realised I could add the image test to an existing one, to avoid adding another test image. Other code is the same as before.

@jklymak jklymak modified the milestones: needs sorting, v3.0 May 2, 2018
@dstansby dstansby added the Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. label Jun 25, 2018
@tacaswell
Copy link
Member

@dstansby this needs a rebase.

@tacaswell
Copy link
Member

This also needs an API changes note. Agree it is better, but we need to document the change!

Copy link
Member

@tacaswell tacaswell left a comment

Choose a reason for hiding this comment

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

contingent on api_changes note and a rebase / squash.

Add API changes

Fix hexbin test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants