Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Error on bad input to hexbin extents#27607

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

Merged
QuLogic merged 2 commits intomatplotlib:mainfromdstansby:bad-hexbin-extent
Jan 11, 2024

Conversation

dstansby
Copy link
Member

@dstansbydstansby commentedJan 6, 2024
edited
Loading

PR summary

If xmin/xmax or ymin/ymax are the wrong way around inhexbin(), raise an error. As noted in#18875 (which this is pulled from), this prevents issues with the hexbin marginals not being displayed at all if they are requested.

PR checklist

@dstansbydstansby marked this pull request as ready for reviewJanuary 6, 2024 17:18
@@ -4999,6 +4999,10 @@ def reduce_C_function(C: array) -> float
ty = np.log10(ty)
if extent is not None:
xmin, xmax, ymin, ymax = extent
if xmin > xmax:
raise ValueError("In extent, xmin must be greater than xmax")
Copy link
Member

Choose a reason for hiding this comment

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

This error message is backwards (in both X and y)

@dstansbydstansby requested a review fromksundenJanuary 8, 2024 20:18
@ksunden
Copy link
Member

Requires updating the new test as well

Copy link
Member

@ksundenksunden left a comment

Choose a reason for hiding this comment

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

Looks like there was a network error affecting some CI; rerunning the main tests but assuming those are good, LGTM.

Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
@QuLogicQuLogic added this to thev3.9.0 milestoneJan 11, 2024
@QuLogicQuLogic merged commitb55c5bb intomatplotlib:mainJan 11, 2024
@dstansbydstansby deleted the bad-hexbin-extent branchJanuary 11, 2024 11:03
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@QuLogicQuLogicQuLogic approved these changes

@ksundenksundenksunden approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.9.0
Development

Successfully merging this pull request may close these issues.

3 participants
@dstansby@ksunden@QuLogic

[8]ページ先頭

©2009-2025 Movatter.jp