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

BUG: Fix regression with set_hatchcolor#29427

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 3 commits intomatplotlib:mainfromlarsoner:hatch
Jan 7, 2025

Conversation

larsoner
Copy link
Contributor

Fixes a regression introduced in#28104 (cc@timhoffm@Impaler343 ):

>>> import numpy as np>>> import matplotlib.patches>>> rect = matplotlib.patches.Rectangle([0, 0], 1, 1)>>> rect.set_hatchcolor(np.zeros(3))Traceback (most recent call last):  File "<stdin>", line 1, in <module>  File "/home/larsoner/python/matplotlib/lib/matplotlib/patches.py", line 445, in set_hatchcolor    self._set_hatchcolor(color)  File "/home/larsoner/python/matplotlib/lib/matplotlib/patches.py", line 428, in _set_hatchcolor    if color == 'edge':       ^^^^^^^^^^^^^^^ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

Impaler343 reacted with thumbs up emoji
larsonerand others added2 commitsJanuary 7, 2025 10:48
Co-authored-by: Greg Lucas <greg.m.lucas@gmail.com>
@larsoner
Copy link
ContributorAuthor

Done (I think)@greglucas !

greglucas reacted with thumbs up emoji

@timhoffmtimhoffm merged commitc3567c3 intomatplotlib:mainJan 7, 2025
35 of 36 checks passed
@QuLogicQuLogic added this to thev3.11.0 milestoneJan 7, 2025
@larsonerlarsoner deleted the hatch branchMay 13, 2025 13:28
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@timhoffmtimhoffmtimhoffm approved these changes

@greglucasgreglucasgreglucas approved these changes

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

Successfully merging this pull request may close these issues.

4 participants
@larsoner@timhoffm@greglucas@QuLogic

[8]ページ先頭

©2009-2025 Movatter.jp