Skip to content

Deprecate FigureCanvasMac.invalidate in favor of draw_idle. #14108

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 3, 2019

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented May 1, 2019

... as that name is standard across most interactive backends (I plan to
harmonize the remaining cases -- tk and nbagg -- to use draw_idle as
well).

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.2.0 milestone May 1, 2019
@@ -182,12 +184,7 @@ class _BackendMac(_Backend):

@staticmethod
def trigger_manager_draw(manager):
# For performance reasons, we don't want to redraw the figure after
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This comment is true, but is not specific to the osx backend -- all interactive backends do the same.

... as that name is standard across most interactive backends (I plan to
harmonize the remaining cases -- tk and nbagg -- to use draw_idle as
well).
Copy link
Member

@dstansby dstansby left a comment

Choose a reason for hiding this comment

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

It looks to me that it hasn't been deprecated, but just renamed?

@anntzer
Copy link
Contributor Author

anntzer commented May 3, 2019

What do you mean? before this PR, draw_idle and invalidate both already exist, with invalidate being implemented in C and draw_idle a trivial wrapper around it. After this PR, it's now draw_idle that's implemented in C and invalidate is a deprecated wrapper around it.

@dstansby dstansby dismissed their stale review May 3, 2019 12:51

Missed some code...

@dstansby
Copy link
Member

dstansby commented May 3, 2019

Sorry, I must have missed that bit...

@dstansby dstansby merged commit 652478d into matplotlib:master May 3, 2019
@anntzer anntzer deleted the macinvalidate branch May 3, 2019 13:23
@anntzer
Copy link
Contributor Author

anntzer commented May 3, 2019

no worries :)

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.

3 participants