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

Throw exception when alpha is out of bounds#30153

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
rcomer merged 1 commit intomatplotlib:mainfromemmanuel-ferdman:main
Jun 9, 2025
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletionlib/matplotlib/colors.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -949,7 +949,7 @@
if not isinstance(alpha, Real):
raise TypeError(f"'alpha' must be numeric or None, not {type(alpha)}")
if not 0 <= alpha <= 1:
ValueError("'alpha' must be between 0 and 1, inclusive")
raiseValueError("'alpha' must be between 0 and 1, inclusive")

Check warning on line 952 in lib/matplotlib/colors.py

View check run for this annotation

Codecov/ codecov/patch

lib/matplotlib/colors.py#L952

Added line #L952 was not covered by tests
new_cm = self.copy()
if not new_cm._isinit:
new_cm._init()
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp