FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix pickling of AxesWidgets. by anntzer · Pull Request #28430 · matplotlib/matplotlib · GitHub

Repository navigation

Fix pickling of AxesWidgets. - #28430

Merged
QuLogic merged 5 commits into
matplotlib:mainfrom
anntzer:pw
Jul 4, 2024
Merged

QuLogic merged 5 commits into
matplotlib:mainfrom
anntzer:pw

Conversation

anntzer commented Jun 20, 2024

Copy link
Copy Markdown
Contributor

There's no need to hold onto the (non-picklable) canvas as an attribute.

Closes #22482.

PR summary

PR checklist

anntzer added topic: widgets/UI topic: pickle Issues to do with pickling labels Jun 20, 2024
QuLogic added this to the v3.9.1 milestone Jun 26, 2024
ksunden previously approved these changes Jun 26, 2024
ksunden dismissed their stale review June 26, 2024 19:45

SpanSelector sets the canvas attrubute in __init__, which fails because it is readonly now

QuLogic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This apparently breaks SpanSelector.

Copy link
Copy Markdown
Member

This is also going to break _changed_canvas which we use to suppress events durring saving (see #25085 / 6bb208d )

anntzer force-pushed the pw branch 2 times, most recently from 31be678 to f13e212 Compare June 26, 2024 22:00
There's no need to hold onto the (non-picklable) canvas as an attribute.
Comment thread lib/matplotlib/widgets.py

anntzer commented Jun 27, 2024

Copy link
Copy Markdown
Contributor Author

Now fixed; the test failure is unrelated.

ksunden commented Jun 27, 2024

Copy link
Copy Markdown
Member

Test failure is not unrelated, it is the newly added test

ksunden left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Anyone can merge on CI finishing

QuLogic merged commit aad2a58 into matplotlib:main Jul 4, 2024
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Jul 4, 2024
anntzer deleted the pw branch July 4, 2024 00:20
QuLogic added a commit that referenced this pull request Jul 4, 2024
…430-on-v3.9.x

Backport PR #28430 on branch v3.9.x (Fix pickling of AxesWidgets.)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: pickle Issues to do with pickling topic: widgets/UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ENH]: pickle (or save) matplotlib figure with insteractive slider

4 participants


Back | FazBrowse Home | New Git URL