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

Skip to content

Commit 04f0dc1

Browse files
committed
update error message for shading=flat
1 parent 8829e7e commit 04f0dc1

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
if shading == 'flat':
57505750
if (Nx, Ny) != (ncols + 1, nrows + 1):
57515751
raise TypeError(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
raise TypeError('Dimensions of C %s are incompatible with'

0 commit comments

Comments
 (0)