Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix matplotlib set_*lim API deprecations #3564

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
Nov 28, 2018

Conversation

sciunto
Copy link
Member

@sciunto sciunto commented Nov 25, 2018

Description

[Tell us about your new feature, improvement, or fix! If relevant, please supplement the PR with images.]

Checklist

[It's fine to submit PRs which are a work in progress! But before they are merged, all PRs should provide:]

[For detailed information on these and other aspects see scikit-image contribution guidelines]

References

[If this is a bug-fix or enhancement, it closes issue # ]
[If this is a new feature, it implements the following paper: ]

For reviewers

(Don't remove the checklist below.)

  • Check that the PR title is short, concise, and will make sense 1 year
    later.
  • Check that new functions are imported in corresponding __init__.py.
  • Check that new features, API changes, and deprecations are mentioned in
    doc/release/release_dev.rst.
  • Consider backporting the PR with @meeseeksdev backport to v0.14.x

@hmaarrfk
Copy link
Member

This actually happened in matplotlib?

Copy link
Member

@jni jni left a comment

Choose a reason for hiding this comment

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

Gah! @hmaarrfk looks like it! https://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.set_xlim.html

I was also incredulous so had to look it up.

I find this pretty terrible, but who am I to judge. Thanks for spotting this, @sciunto!

@sciunto
Copy link
Member Author

sciunto commented Nov 26, 2018

Before, the API was repetitive, now it sounds stupid (IMO). :(

@sciunto sciunto added 🔧 type: Maintenance Refactoring and maintenance of internals action: mrg+1 labels Nov 26, 2018
@stefanv
Copy link
Member

stefanv commented Nov 26, 2018

Perhaps the most natural calling convention then becomes set_*lim([None, L])

@soupault soupault changed the title Fix axis API deprecation (matplotlib) Fix matplotlib set_*lim API deprecations Nov 28, 2018
@soupault soupault merged commit 4cf08ea into scikit-image:master Nov 28, 2018
@stefanv
Copy link
Member

stefanv commented Nov 28, 2018

@soupault Was my suggestion not a good one? :)

@soupault
Copy link
Member

soupault commented Nov 28, 2018

@stefanv sorry, I didn't catch that you were suggesting to change the PR. Personally, I'm fine with the current implementation and don't really find right, top, etc stupid. But if you insist to revert the PR and switch to unnamed arguments, I wouldn't mind.

@stefanv
Copy link
Member

stefanv commented Nov 28, 2018 via email

@sciunto sciunto deleted the matplotlib_deprecation branch November 29, 2018 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔧 type: Maintenance Refactoring and maintenance of internals
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants