8000 Deprecate NavigationToolbar2Tk.set_active. by anntzer · Pull Request #13711 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Deprecate NavigationToolbar2Tk.set_active. #13711

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
May 22, 2019

Conversation

anntzer
Copy link
Contributor
@anntzer anntzer commented Mar 19, 2019

It appears to be some vestige of the NavigationToolbar(1) code, with
some traces also in the wx examples and currently being deprecated in
backend_wx.

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

@@ -705,6 +705,7 @@ def save_figure(self, *args):
except Exception as e:
tkinter.messagebox.showerror("Error saving file", str(e))

@cbook.deprecated("3.1")
def set_active(self, ind):
self._ind = ind
self._active = [self._axes[i] for i in self._ind]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

these attributes appear to be never accessed as well.

It appears to be some vestige of the NavigationToolbar(1) code, with
some traces also in the wx examples and currently being deprecated in
backend_wx.
@efiring efiring merged commit 4d1a2de into matplotlib:master May 22, 2019
@anntzer anntzer deleted the tktoolbaractive branch May 22, 2019 21:26
efiring added a commit to efiring/matplotlib that referenced this pull request May 22, 2019
efiring added a commit that referenced this pull request May 22, 2019
@QuLogic QuLogic added this to the v3.2.0 milestone May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0