Skip to content

Fix deprecation of withdash for figtext(). #14150

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

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented May 7, 2019

Apply the same check for _deprecated_parameter in Figure.text() (aka
plt.figtext()) as in Axes.text(); xref

Otherwise any call to Figure.text(), even without passing withdash,
emits a deprecation warning (because _deprecated_parameter is truthy).

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

Apply the same check for _deprecated_parameter in Figure.text() (aka
plt.figtext()) as in Axes.text().

Otherwise any call to Figure.text(), even without passing withdash,
emits a deprecation warning (because _deprecated_parameter is truthy).
@anntzer anntzer added the Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. label May 7, 2019
@anntzer anntzer added this to the v3.1.0 milestone May 7, 2019
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.

👍 if/when CI passes

@timhoffm timhoffm merged commit 348ae44 into matplotlib:master May 7, 2019
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request May 7, 2019
@anntzer anntzer deleted the withdash branch May 7, 2019 20:08
timhoffm added a commit that referenced this pull request May 7, 2019
…150-on-v3.1.x

Backport PR #14150 on branch v3.1.x (Fix deprecation of withdash for figtext().)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants