Skip to content

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

Merged
oscargus merged 1 commit into
matplotlib:mainfrom
anntzer:unex
Mar 13, 2023
Merged

oscargus merged 1 commit into
matplotlib:mainfrom
anntzer:unex

Conversation

@anntzer

@anntzer anntzer commented Mar 10, 2023 •

Copy link
Copy Markdown
Contributor

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.

@greglucas greglucas Mar 11, 2023 •

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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