Skip to content

Deprecate Artist.{set,get}_contains. #16200

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
Mar 10, 2020
Merged

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Jan 13, 2020

I don't think it makes sense to allow overriding contains() checks
per instance -- and if someone really need that, they can use a custom
artist subclass or even just monkeypatch the contains method; if they
need it for pick events there's still Artist.set_picker which is not
going away.

This came in in 8111a3a (2007) and was apparently never used or tested.

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 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 added this to the v3.3.0 milestone Jan 13, 2020
@anntzer anntzer force-pushed the contains branch 3 times, most recently from 0886e70 to 5d7361b Compare January 17, 2020 13:21
@QuLogic
Copy link
Member

QuLogic commented Mar 9, 2020

This appears to need a rebase to get working CI (failures don't appear to be related, I think), but also there are many references to these functions in doc/api that maybe are unnecessary now?

I don't think it makes sense to allow overriding contains() checks
per instance -- and if someone really need that, they can use a custom
artist subclass or even just monkeypatch the contains method; if they
need it for pick events there's still Artist.set_picker which is not
going away.

This came in in 8111a3a (2007) and was apparently never used or tested.
@anntzer
Copy link
Contributor Author

anntzer commented Mar 10, 2020

rebased. I think the references may as well stay until the whole thing is removed?

@QuLogic
Copy link
Member

QuLogic commented Mar 10, 2020

Actually, you removed them in #14960 (once it's merged.)

@anntzer
Copy link
Contributor Author

anntzer commented Mar 10, 2020

then let's keep references removal that to that PR?

@QuLogic QuLogic merged commit fed8651 into matplotlib:master Mar 10, 2020
@anntzer anntzer deleted the contains branch March 10, 2020 07:00
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