Skip to content

Remove Artist.eventson and Container.eventson#18910

Merged
tacaswell merged 1 commit into
matplotlib:masterfrom
timhoffm:remove-eventson
Nov 17, 2020
Merged

Remove Artist.eventson and Container.eventson#18910
tacaswell merged 1 commit into
matplotlib:masterfrom
timhoffm:remove-eventson

Conversation

@timhoffm
Copy link
Copy Markdown
Member

@timhoffm timhoffm commented Nov 6, 2020

PR Summary

They are unused.

Closes #4877.

@timhoffm timhoffm added this to the v3.4.0 milestone Nov 6, 2020
@QuLogic
Copy link
Copy Markdown
Member

QuLogic commented Nov 7, 2020

No deprecation?

@timhoffm
Copy link
Copy Markdown
Member Author

timhoffm commented Nov 7, 2020

This has only ever existed as an attribute set in __init__. Does not appear in the documentation. Did not have any functionality for years (possibly ever).

Given that, it's extremely unlikely anybody is using it, and I dare removing without deprecation fuss.

Copy link
Copy Markdown
Contributor

@anntzer anntzer left a comment

Choose a reason for hiding this comment

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

messed up rebase. anyone can dismiss once fixed.

@tacaswell tacaswell merged commit dbae370 into matplotlib:master Nov 17, 2020
@timhoffm timhoffm deleted the remove-eventson branch November 17, 2020 20:28
timhoffm added a commit to timhoffm/matplotlib that referenced this pull request Feb 2, 2026
The attribute `eventson` was introduced in 79aa291. While it was
set on and off in various places, there has never been any code that
made logic depend on its state. The attribute itself was removed in
matplotlib#18910, but its toggling through the context manager was overlooked
there.

Note: There is another `eventson` in widgets.py, which is completely
independent on this here, because widgets are not Artists.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sort out if Artist.eventson is used anywhere and what it's fate should be

4 participants