Skip to content

Remove unnecessary calls to Formatter.set_locs.#25510

Merged
oscargus merged 1 commit intomatplotlib:mainfrom
anntzer:ufsl
Mar 20, 2023
Merged

Remove unnecessary calls to Formatter.set_locs.#25510
oscargus merged 1 commit intomatplotlib:mainfrom
anntzer:ufsl

Conversation

@anntzer
Copy link
Copy Markdown
Contributor

@anntzer anntzer commented Mar 20, 2023

set_ticks actually already calls set_locs, so the calls here are redundant.

Preparatory to deprecating set_locs as a public API (#13323, #5787 (comment)).

PR Summary

PR Checklist

Documentation and Tests

  • Has pytest style unit tests (and pytest passes)
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).
  • New plotting related features are documented with examples.

Release Notes

  • New features are marked with a .. versionadded:: directive in the docstring and documented in doc/users/next_whats_new/
  • API changes are marked with a .. versionchanged:: directive in the docstring and documented in doc/api/next_api_changes/
  • Release notes conform with instructions in next_whats_new/README.rst or next_api_changes/README.rst

set_ticks actually already calls set_locs, so the calls here are
redundant.

Preparatory to deprecating set_locs as a public API.
@oscargus oscargus added this to the v3.8.0 milestone Mar 20, 2023
@oscargus oscargus merged commit 00c8d39 into matplotlib:main Mar 20, 2023
@anntzer anntzer deleted the ufsl branch March 20, 2023 23:56
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