Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Clarify loading of backend FigureCanvas and show().#26665

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
timhoffm merged 1 commit intomatplotlib:mainfromanntzer:cc
Sep 1, 2023

Conversation

anntzer
Copy link
Contributor

  • FigureCanvas is now required to exist on backend modules (since the deprecation elapsed in 3.8) and we indeed already access that attribute directly when checking required_interactive_framework, so remove redundant getattrs.
  • Clarify the error message when manager_class is Noneand there's no global show(). (Previously an AttributeError would be raised:[Bug]: 'NoneType' object has no attribute 'pyplot_show' #26463)

PR summary

PR checklist

if not manager_pyplot_show:
raise ValueError(
"Backend `newbackend` defines neither `FigureCanvas.manager_class` nor "
"a toplevel `show` function")
Copy link
Member

Choose a reason for hiding this comment

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

Maybe I am missing something obvious (or do not see properly), but do we use backticks in error messages?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Removed them.

@anntzeranntzerforce-pushed thecc branch 2 times, most recently from2dc4ae2 to48e9e65CompareAugust 31, 2023 14:46
- FigureCanvas is now required to exist on backend modules (since the  deprecation elapsed in 3.8) and we indeed already access that  attribute directly when checking required_interactive_framework, so  remove redundant getattrs.- Clarify the error message when manager_class is None *and* there's no  global show().  (Previously an AttributeError would be raised.)
@timhoffmtimhoffm added this to thev3.8.0 milestoneSep 1, 2023
@timhoffmtimhoffm merged commit469b96b intomatplotlib:mainSep 1, 2023
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestSep 1, 2023
@anntzeranntzer deleted the cc branchSeptember 1, 2023 12:58
QuLogic added a commit that referenced this pull requestSep 1, 2023
…665-on-v3.8.xBackport PR#26665 on branch v3.8.x (Clarify loading of backend FigureCanvas and show().)
@ksundenksunden mentioned this pull requestSep 15, 2023
5 tasks
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@oscargusoscargusoscargus left review comments

@QuLogicQuLogicQuLogic approved these changes

@timhoffmtimhoffmtimhoffm approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.8.0
Development

Successfully merging this pull request may close these issues.

4 participants
@anntzer@QuLogic@timhoffm@oscargus

[8]ページ先頭

©2009-2025 Movatter.jp