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

DOC: fix the bug of examples\event_handling#29680

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
tacaswell merged 1 commit intomatplotlib:mainfromsandyowlet:main
Feb 26, 2025

Conversation

sandyowlet
Copy link
Contributor

DOC: fix the bug of examples\event_handling\data_browser.py

Closes#22329

Matplotlib now enforces that line data modifications must be sequences. However, the example script has not been updated accordingly, which will cause errors when running it.

Traceback (most recent call last):  ...  File "...\matplotlib\galleries\examples\event_handling\data_browser.py", line 72, in on_pick    self.update()  File "...\matplotlib\galleries\examples\event_handling\data_browser.py", line 92, in update    self.selected.set_data(xs[dataind], ys[dataind])  File "...\site-packages\matplotlib\lines.py", line 665, in set_data    self.set_xdata(x)  File "...\matplotlib\lines.py", line 1289, in set_xdata    raise RuntimeError('x must be a sequence')RuntimeError: x must be a sequence

Updated script to fix this bug.

PR checklist

@github-actionsgithub-actionsbot added the Documentation: examplesfiles in galleries/examples labelFeb 26, 2025
Copy link

@github-actionsgithub-actionsbot left a comment

Choose a reason for hiding this comment

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

Thank you for opening your first PR into Matplotlib!

If you have not heard from us in a week or so, please leave a new comment below and that should bring it to our attention. Most of our reviewers are volunteers and sometimes things fall through the cracks.

You can also join uson gitter for real-time discussion.

For details on testing, writing docs, and our review process, please seethe developer guide

We strive to be a welcoming and open project. Please follow ourCode of Conduct.

@tacaswelltacaswell added this to thev3.10.2 milestoneFeb 26, 2025
@tacaswelltacaswell merged commitef62e5b intomatplotlib:mainFeb 26, 2025
21 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestFeb 26, 2025
@tacaswell
Copy link
Member

Thank you@sandyowlet ! Congratulations on your first merged Matplotlib PR 🎉 and I hope we hear from you again.

timhoffm added a commit that referenced this pull requestFeb 27, 2025
…680-on-v3.10.xBackport PR#29680 on branch v3.10.x (DOC: fix the bug of examples\event_handling)
@QuLogicQuLogic modified the milestones:v3.10.2,v3.10.1Feb 27, 2025
@ksundenksunden mentioned this pull requestMar 3, 2025
5 tasks
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@github-actionsgithub-actions[bot]github-actions[bot] left review comments

@tacaswelltacaswelltacaswell approved these changes

Assignees
No one assigned
Labels
Documentation: examplesfiles in galleries/examples
Projects
None yet
Milestone
v3.10.1
Development

Successfully merging this pull request may close these issues.

3 participants
@sandyowlet@tacaswell@QuLogic

[8]ページ先頭

©2009-2025 Movatter.jp