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

Skip to content

Remove Artist.{get,set}_axes. #9128

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 3 commits into from
Aug 31, 2017
Merged

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Aug 30, 2017

They are deprecated, and have been planned for removal in 2.0. (2.1 will be the second minor release since deprecation, 2.2 the third).

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is PEP 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

@anntzer anntzer force-pushed the remove-getset-axes branch from 91dccba to e0551fb Compare August 30, 2017 21:45
@tacaswell
Copy link
Member

Suspect they also need to be removed from some rst files.

@anntzer anntzer force-pushed the remove-getset-axes branch from e0551fb to f7ec3b1 Compare August 30, 2017 21:57

# the axes class has a second argument inframe for its draw method.
@wraps(draw)
Copy link
Member

Choose a reason for hiding this comment

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

Do not have is an issue with this, but why?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because I don't think adding an extra layer of indirection really helps with clarity -- does it?

Copy link
Member

Choose a reason for hiding this comment

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

No, think this will make many tracebacks a few levels shorter. I asked this before I fully groked that this is all inside of a decorator!

@tacaswell tacaswell added this to the 2.1 (next point release) milestone Aug 31, 2017
@dstansby dstansby merged commit d0922df into matplotlib:master Aug 31, 2017
@anntzer anntzer deleted the remove-getset-axes branch August 31, 2017 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants