Skip to content

Store FloatingAxes "extremes" info in fewer places. #25427

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
Mar 13, 2023

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Mar 10, 2023

Make the value returned by ExtremeFinderFixed be the canonical place to query the value of the extremes parameter.

This may make it easier to change the extremes post-facto (there's fewer places to update): #25426. (Though some further work is needed...)

Also deprecate the related get_data_boundary method, which doesn't exist anywhere else and isn't really needed as a separate API: we can just inline it into its only call site instead.

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

@anntzer anntzer added this to the v3.8.0 milestone Mar 10, 2023
@anntzer anntzer force-pushed the unex branch 2 times, most recently from f321161 to 3098161 Compare March 10, 2023 12:43
@@ -0,0 +1,3 @@
``GridHelperCurveLinear.get_data_boundary``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
... is deprecated with no replacement.
Copy link
Contributor

@greglucas greglucas Mar 11, 2023

Choose a reason for hiding this comment

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

Do we want a note about how one can do this still? (at least pointing someone in the right direction even if it isn't a direct replacement)

Use grid_finder.extreme_finder(*[None] * 5) to get the extremes of the grid.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure, done.

Make the value returned by ExtremeFinderFixed be the canonical place
to query the value of the extremes parameter.

This may make it easier to change the extremes post-facto (there's fewer
places to update).

Also deprecate the related get_data_boundary method, which doesn't exist
anywhere else and isn't really needed as a separate API: we can just
inline it into its only call site instead.
@oscargus oscargus merged commit e577962 into matplotlib:main Mar 13, 2023
@anntzer anntzer deleted the unex branch March 13, 2023 11:35
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