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

Skip to content

Deprecate get_grid_positions(..., raw=True). #23572

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
Aug 18, 2022
Merged

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Aug 6, 2022

The API was added in f8dfea7 (@jklymak) but never actually used anywhere.

PR Summary

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).

@anntzer anntzer added this to the v3.6.0 milestone Aug 6, 2022
Copy link
Member

@timhoffm timhoffm left a comment

Choose a reason for hiding this comment

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

But @jklymak should finally decide whether this won’t be needed in constrained layout in the future.

@jklymak
Copy link
Member

jklymak commented Aug 9, 2022

I agree we don't use this anymore. OTOH I'm not sure why we would bother deprecating it?

@timhoffm
Copy link
Member

timhoffm commented Aug 9, 2022

Less functionality and API surface is better from a maintainability and usability point of view. If we don’t have a good reason to keep this - for us or the user, let’s get rid of it.

@jklymak
Copy link
Member

jklymak commented Aug 9, 2022

I guess that is my point - it seems useful to provide a geometrical division of the figure without having to manually set all the subplot_params to zero and then potentially have to restore them.

@QuLogic
Copy link
Member

QuLogic commented Aug 17, 2022

I don't think I can find anyone using it on GitHub, only forks of us/fully committed venvs.

@anntzer
Copy link
Contributor Author

anntzer commented Aug 18, 2022

I don't have a very strong opinion there; my PoV was basically the one expressed by @timhoffm at #23572 (comment). If @jklymak feels strongly about this we can close it too.

@timhoffm
Copy link
Member

@jklymak please speak up if you want to keep this.

@jklymak
Copy link
Member

jklymak commented Aug 18, 2022

I spoke up above - I don't see that this is worth a deprecation song and dance, but if you want it out, I'm not blocking.

@anntzer anntzer modified the milestones: v3.6.0, v3.7.0 Aug 18, 2022
@anntzer
Copy link
Contributor Author

anntzer commented Aug 18, 2022

Let's let @tacaswell make the call on that one.

The API was added in f8dfea7 but never actually used anywhere.
Copy link
Member

@tacaswell tacaswell left a comment

Choose a reason for hiding this comment

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

I agree to deprecate this.

We do not use, we do not think anyone else uses it and it is a somewhat confusing API (it in not clear what "raw" means).

@jklymak jklymak merged commit c773fec into matplotlib:main Aug 18, 2022
@QuLogic QuLogic modified the milestones: v3.7.0, v3.6.0 Aug 18, 2022
@anntzer anntzer deleted the ggp branch August 19, 2022 06:24
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.

5 participants