Skip to content

macosx backend warns when using the zoom method #17905

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

Closed
greglucas opened this issue Jul 13, 2020 · 1 comment · Fixed by #17907
Closed

macosx backend warns when using the zoom method #17905

greglucas opened this issue Jul 13, 2020 · 1 comment · Fixed by #17907
Labels
GUI: MacOSX Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. status: confirmed bug
Milestone

Comments

@greglucas
Copy link
Contributor

Bug report

Bug summary

The current master branch warns about calling release() at zoom stop within the macosx backend (all the others work fine for me). This seems like it should warn if an external user is creating their own backend or overriding functionality, but not the included macosx backend, since there is no way for a user to get rid of the message. (Panning seemed to be fine, even though there is a similar warning in the backend_bases there)

Code for reproduction

In [1]: import matplotlib

In [2]: matplotlib.use('macosx')

In [3]: import matplotlib.pyplot as plt

In [4]: fig, ax = plt.subplots()

In [5]: ax.plot([0, 1], [0, 1])
Out[5]: [<matplotlib.lines.Line2D at 0x7fcb3910d850>]

In [6]: plt.show()
MatplotlibDeprecationWarning: Calling an overridden release() at zoom stop is deprecated since 3.3 and will be removed two minor releases later; override release_zoom() instead.

Expected outcome

No warning from an MPL included backend.

@dstansby
Copy link
Member

I can reproduce this on master, and with 3.3.0rc1. Going to label as release critical as we probably don't want deprecation warnings showing up when doing normal things.

@dstansby dstansby added this to the v3.3.0 milestone Jul 13, 2020
@dstansby dstansby added the Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. label Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GUI: MacOSX Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. status: confirmed bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants