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

Go back to checking figures for their manager in destroy.#18184

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

Conversation

QuLogic
Copy link
Member

PR Summary

This is a partial revert of a small part of#13581.

Fixes#18163.

PR Checklist

  • Has Pytest style unit tests
  • Code isFlake 8 compliant
  • [n/a] New features are documented, with examples if plot related
  • [n/a] Documentation is sphinx and numpydoc compliant
  • [n/a] Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • [n/a] Documented in doc/api/next_api_changes/* if API changed in a backward-incompatible way

@QuLogicQuLogic added this to thev3.3.1 milestoneAug 5, 2020
num = next((manager.num for manager in cls.figs.values()
if manager.canvas.figure == fig), None)
if num is not None:
cls.destroy(num)
Copy link
Member

Choose a reason for hiding this comment

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

Can we add a comment, why we have to destroy by number?

Copy link
MemberAuthor

@QuLogicQuLogicAug 5, 2020
edited
Loading

Choose a reason for hiding this comment

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

It actually works either way (manager ormanager.num); it's just that the code indestroy is simpler fornum, i.e., we know thatcls.figs.get(manager.num) is manager because we just pulledmanager fromcls.figs.

Copy link
Member

@timhoffmtimhoffm left a comment

Choose a reason for hiding this comment

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

Travis OSX fails. I'm unclear if the error is related to the PR.

@QuLogic
Copy link
MemberAuthor

Yea, that's weird, a restart was not effective; I'll try it out on the mac.

@QuLogic
Copy link
MemberAuthor

It worked on the Mac Mini, so I restarted Travis again.

@QuLogicQuLogicforce-pushed therevert-canvas-manager-destroy branch 2 times, most recently from4d8e0d1 tof65eb17CompareAugust 6, 2020 03:47
@QuLogic
Copy link
MemberAuthor

QuLogic commentedAug 6, 2020
edited
Loading

I tried increasing the timeout, which didn't work, but it's appearing on other tests now, so I've reverted that as the problem doesn't seem strictly related to this PR.

@tacaswell
Copy link
Member

As discussed on the call to get 3.3.1 out the door we are going to disable this test on travis (it should be noted that we do run this test on azure) so the current working theory is that this is a travis-specific issues with the GUI and is not worth the time right now to track down the root problem (but we should open a new issue and label it "good first issue / medium" localized, but involves defeating CI ;) ).

@QuLogicQuLogicforce-pushed therevert-canvas-manager-destroy branch fromf65eb17 todb6fb4dCompareAugust 10, 2020 20:37
@jklymakjklymak merged commit5426474 intomatplotlib:masterAug 11, 2020
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestAug 11, 2020
@QuLogicQuLogic deleted the revert-canvas-manager-destroy branchAugust 11, 2020 02:56
QuLogic added a commit that referenced this pull requestAug 11, 2020
…184-on-v3.3.xBackport PR#18184 on branch v3.3.x (Go back to checking figures for their manager in destroy.)
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@tacaswelltacaswelltacaswell approved these changes

@timhoffmtimhoffmtimhoffm approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
v3.3.1
Development

Successfully merging this pull request may close these issues.

Figure cannot be closed if it has associated Agg canvas
4 participants
@QuLogic@tacaswell@timhoffm@jklymak

[8]ページ先頭

©2009-2025 Movatter.jp