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

Logit scale nonsingular#14928

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
anntzer merged 4 commits intomatplotlib:masterfromjb-leger:logit_scale_nonsingular
Sep 10, 2019

Conversation

jb-leger
Copy link
Contributor

PR Summary

This PR solves issues#14743.

This issues was present from thenonsingular method of theLogitLocator. In the PR#14512 I rewrite most of this locator, but I keep the nonsingular method from the old code. I was not the author of this bug. I fixed it because I know this very small part of the matplotlib code.

Also, I added some tests.

PR Checklist

  • Has Pytest style unit tests
  • Code isFlake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

@jb-legerjb-legerforce-pushed thelogit_scale_nonsingular branch 2 times, most recently from693ecee to966cca4CompareJuly 30, 2019 19:26
@jb-legerjb-legerforce-pushed thelogit_scale_nonsingular branch from966cca4 to787f6b8CompareJuly 31, 2019 09:29

standard_minpos = 1e-7
initial_range = (standard_minpos, 1 - standard_minpos)
swap_vlims = False
Copy link
Member

Choose a reason for hiding this comment

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

As a state flag, I would rather name thisvlims_swapped.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I agree. But I take the logic (and the name for variables) fromLogLocator.

What is the best?

  • usevlims_swapped inLogitLocator,
  • useswap_vlims inLogitLocator for consistency withLogLocator,
  • usevlims_swapped inLogitLocator, and renameswap_vlims tovlims_swapped inLogLocator for consistency,

I dislike the third one (as it can introduce conflicts with other branches for no real reason). I have no opinion between the two firsts.

@tacaswelltacaswell added this to thev3.2.0 milestoneAug 12, 2019
tacaswell
tacaswell previously approved these changesAug 24, 2019
@tacaswell
Copy link
Member

Thanks@jb-leger !

We all mostly fix bugs that we did not write ;)

@anntzer
Copy link
Contributor

Sorry, in#14624 we decided to revert the behavior of nonsingular to always order its return value in increasing order (it's a bit of a mess :( see linked discussions); it means that for this PR the swap_vlims dance should go away.

@tacaswelltacaswell dismissed theirstale reviewSeptember 4, 2019 16:10

Due to changes in other PRs, need to not swap the order

@tacaswell
Copy link
Member

@jb-leger I took the liberty of making the change@anntzer requested, hope you do not mind!

@tacaswell
Copy link
Member

ok, I am apparently deeply confused about this sorting stuff....

@jb-leger
Copy link
ContributorAuthor

Sorry, I have a lot of administrative work these days, I did'nt had the time to interact here and to do the requested changes.

That's perfect@tacaswell, I don't mind at all that you push on this branch.

Inmatplotlib#14624 we revertedchanging the order of the limits to match the input order.  Doing thesame here for consistency.Sort the limits before comparing.  We want to make sure that it workswith the values reversed, but do not expect non-singular to preservethe order.
@anntzeranntzer merged commitbebb206 intomatplotlib:masterSep 10, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@QuLogicQuLogicQuLogic left review comments

@anntzeranntzeranntzer approved these changes

@timhoffmtimhoffmtimhoffm approved these changes

@tacaswelltacaswelltacaswell left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
v3.2.0
Development

Successfully merging this pull request may close these issues.

5 participants
@jb-leger@tacaswell@anntzer@QuLogic@timhoffm

[8]ページ先頭

©2009-2025 Movatter.jp