Skip to content
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

Restore get_renderer function in deprecated tight_layout #24301

Merged
merged 1 commit into from Nov 2, 2022

Conversation

oscargus
Copy link
Contributor

PR Summary

get_renderer was removed in #22745 despite being a public (listed) function, see #24300 (comment)

Closes #24300

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

  • 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

@oscargus oscargus added this to the v3.6.2 milestone Oct 29, 2022
@oscargus oscargus marked this pull request as ready for review October 29, 2022 10:52
@oscargus oscargus changed the title Restore get_rendered function in deprecated tight_layout Restore get_renderer function in deprecated tight_layout Oct 29, 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.

Maybe better restore the method to the non-private module?

@oscargus
Copy link
Contributor Author

You are both right. I was, incorrectly, under the impression that the module would be removed once the deprecation expires. Thanks for thinking!

Copy link
Member

@jklymak jklymak left a comment

Choose a reason for hiding this comment

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

Leaving open if @timhoffm wanted to comment further.

lib/matplotlib/tight_layout.py Outdated Show resolved Hide resolved
@QuLogic QuLogic merged commit f26219b into matplotlib:main Nov 2, 2022
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Nov 2, 2022
QuLogic added a commit that referenced this pull request Nov 2, 2022
…301-on-v3.6.x

Backport PR #24301 on branch v3.6.x (Restore get_renderer function in deprecated tight_layout)
@oscargus oscargus deleted the restoregetrenderer branch November 2, 2022 07:44
@ksunden ksunden mentioned this pull request Feb 20, 2023
6 tasks
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.

cannot import name 'get_renderer' from 'matplotlib.tight_layout
6 participants