Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Remove APIs deprecated in mpl3.0. #14244

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

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 18, 2019
@anntzer anntzer force-pushed the mpl30deprecationsremovals branch 4 times, most recently from fb5e6c6 to 0481712 Compare May 18, 2019 21:22
@@ -4457,13 +4457,6 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,

scales = s # Renamed for readability below.

# to be API compatible
if verts is not None:
Copy link
Member

Choose a reason for hiding this comment

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

verts should be be removed from the method signature. Unfortunately, strictly speaking this would be a breaking change again because you change the position of edgecolors. But nevertheless I think that's what we should do - and since edgecolors is changing its position anyway, you can move the kwonly marker * before it.

The alternative would be to keep verts and raise a TypeError here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added a _delete_parameter on verts. Sure, that'll take two more minor versions before removing it from the signature, but heh, there's no urgency either...

"simultaneously. "
"Please only use 'density', since 'normed'"
"is deprecated.")
if normed is not None:
Copy link
Member

Choose a reason for hiding this comment

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

remove normed from signature.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks, fixed

@anntzer anntzer force-pushed the mpl30deprecationsremovals branch 2 times, most recently from 317f39b to dea307f Compare May 19, 2019 20:44
@anntzer anntzer force-pushed the mpl30deprecationsremovals branch from dea307f to 4930fbc Compare May 21, 2019 04:14
Copy link
Member

@efiring efiring left a comment

Choose a reason for hiding this comment

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

Thank you.

@timhoffm timhoffm merged commit c015c4a into matplotlib:master May 22, 2019
@anntzer anntzer deleted the mpl30deprecationsremovals branch May 22, 2019 22:14
@anntzer anntzer mentioned this pull request Nov 5, 2019
6 tasks
@anntzer anntzer mentioned this pull request Dec 8, 2019
6 tasks
@QuLogic QuLogic mentioned this pull request Mar 14, 2020
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants