Skip to content

Make emit and auto args of set_{x,y,z}lim keyword only. - #22415

Merged
QuLogic merged 1 commit into
matplotlib:mainfrom
anntzer:emitauto
Feb 11, 2022
Merged

QuLogic merged 1 commit into
matplotlib:mainfrom
anntzer:emitauto

Conversation

@anntzer

@anntzer anntzer commented Feb 6, 2022

Copy link
Copy Markdown
Contributor

PR Summary

This should help with later improving argument checking in the setters,
e.g. to make set_xlim(3) error out (requiring set_xlim(left=3)), as
that is likely a logic error.

Goes on top of #21442 to avoid a rebase.

PR Checklist

Tests and Styling

  • Has pytest style unit tests (and pytest passes).
  • Is Flake 8 compliant (install flake8-docstrings and run flake8 --docstring-convention=all).

Documentation

  • New features are documented, with examples if plot related.
  • New features have an entry in doc/users/next_whats_new/ (follow instructions in README.rst there).
  • API changes documented in doc/api/next_api_changes/ (follow instructions in README.rst there).
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).

@timhoffm timhoffm added the API: changes Changes to the public API, typically requiring deprecation. label Feb 6, 2022
@QuLogic QuLogic closed this Feb 11, 2022
@QuLogic QuLogic reopened this Feb 11, 2022
@QuLogic

QuLogic commented Feb 11, 2022

Copy link
Copy Markdown
Member

Seems to break some internal callers.

This should help with later improving argument checking in the setters,
e.g. to make `set_xlim(3)` error out (requiring `set_xlim(left=3)`), as
that is likely a logic error.
@anntzer

anntzer commented Feb 11, 2022

Copy link
Copy Markdown
Contributor Author

Hopefully fixed now.

@QuLogic
QuLogic merged commit 0a8b637 into matplotlib:main Feb 11, 2022
@anntzer
anntzer deleted the emitauto branch February 11, 2022 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API: changes Changes to the public API, typically requiring deprecation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants