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

Commitcf9296d

Browse files
trygvradstory645
andauthored
Apply suggestions from code review
Co-authored-by: hannah <story645@gmail.com>
1 parentd5c43e0 commitcf9296d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎lib/matplotlib/colorizer.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def _scale_norm(self, norm, vmin, vmax, A):
7878
raiseValueError(
7979
"Passing a Normalize instance simultaneously with "
8080
"vmin/vmax is not supported. Please pass vmin/vmax "
81-
"directlyto the norm when creating it")
81+
"as argumentsto the norm object when creating it")
8282

8383
# always resolve the autoscaling so we have concrete limits
8484
# rather than deferring to draw time.
@@ -174,7 +174,7 @@ def _pass_image_data(x, alpha=None, bytes=False, norm=True):
174174

175175
ifnormand (xx.max()>1orxx.min()<0):
176176
raiseValueError("Floating point image RGB values "
177-
"must be in the0..1 range")
177+
"must be in the[0,1] range")
178178
ifbytes:
179179
xx= (xx*255).astype(np.uint8)
180180
elifxx.dtype==np.uint8:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp