Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DOC: fix strip_chart example with numpy 1.24 #24774

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

Merged
merged 1 commit into from
Dec 19, 2022

Conversation

tacaswell
Copy link
Member

PR Summary

With numpy 1.24 we are ending up with the y-data being passed to the line that looked like

[0, 0.0, 0.0, 0.0, 0.0, array([0.75523994])]

which was then causing issues when we went to convert that list to an array. I did not track down if this is a change in the behavior of np.random.rand or in how picky the list->array casting logic is.

For reasons that are very unclear to me this also unbreaks the unchained example when building the docs which suggests to me that the examples are not as isolated as we think (I could not get the unchained demo to fail outside of the docs build which also suggests some state leakage between them).

@tacaswell tacaswell added this to the v3.6-doc milestone Dec 19, 2022
Copy link
Member

@oscargus oscargus left a comment

Choose a reason for hiding this comment

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

Weird change considering the error message. Well hunted!

@ksunden ksunden merged commit e046b10 into matplotlib:main Dec 19, 2022
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Dec 19, 2022
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Dec 19, 2022
rcomer added a commit that referenced this pull request Dec 19, 2022
…774-on-v3.6.x

Backport PR #24774 on branch v3.6.x (DOC: fix strip_chart example with numpy 1.24)
rcomer added a commit that referenced this pull request Dec 19, 2022
…774-on-v3.6.2-doc

Backport PR #24774 on branch v3.6.2-doc (DOC: fix strip_chart example with numpy 1.24)
@tacaswell tacaswell deleted the fix/doc_build branch December 19, 2022 20:21
@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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants