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

Commit04f0dc1

Browse files
committed
update error message for shading=flat
1 parent8829e7e commit04f0dc1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎lib/matplotlib/axes/_axes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5749,8 +5749,8 @@ def _pcolorargs(self, funcname, *args, shading='auto', **kwargs):
57495749
ifshading=='flat':
57505750
if (Nx,Ny)!= (ncols+1,nrows+1):
57515751
raiseTypeError(f"Dimensions of X({Nx}) and y({Ny}) should"
5752-
f"be one larger than C{C.shape}"
5753-
f"see help({funcname})")
5752+
f"be one larger than C{C.shape} while using"
5753+
f" shading='flat'see help({funcname})")
57545754
else:# ['nearest', 'gouraud']:
57555755
if (Nx,Ny)!= (ncols,nrows):
57565756
raiseTypeError('Dimensions of C %s are incompatible with'

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp