@@ -5634,12 +5634,11 @@ def _pcolorargs(funcname, *args, allmatch=False):
56345634
56355635 if len (args ) == 1 :
56365636 C = np .asanyarray (args [0 ])
5637- numRows , numCols = C .shape
5637+ nrows , ncols = C .shape
56385638 if allmatch :
5639- X , Y = np .meshgrid (np .arange (numCols ), np .arange (numRows ))
5639+ X , Y = np .meshgrid (np .arange (ncols ), np .arange (nrows ))
56405640 else :
5641- X , Y = np .meshgrid (np .arange (numCols + 1 ),
5642- np .arange (numRows + 1 ))
5641+ X , Y = np .meshgrid (np .arange (ncols + 1 ), np .arange (nrows + 1 ))
56435642 C = cbook .safe_masked_invalid (C )
56445643 return X , Y , C
56455644
@@ -5659,7 +5658,7 @@ def _pcolorargs(funcname, *args, allmatch=False):
56595658 X = X .data # strip mask as downstream doesn't like it...
56605659 if isinstance (Y , np .ma .core .MaskedArray ):
56615660 Y = Y .data
5662- numRows , numCols = C .shape
5661+ nrows , ncols = C .shape
56635662 else :
56645663 raise TypeError (
56655664 'Illegal arguments to %s; see help(%s)' % (funcname , funcname ))
@@ -5677,12 +5676,12 @@ def _pcolorargs(funcname, *args, allmatch=False):
56775676 'Incompatible X, Y inputs to %s; see help(%s)' % (
56785677 funcname , funcname ))
56795678 if allmatch :
5680- if (Nx , Ny ) != (numCols , numRows ):
5679+ if (Nx , Ny ) != (ncols , nrows ):
56815680 raise TypeError ('Dimensions of C %s are incompatible with'
56825681 ' X (%d) and/or Y (%d); see help(%s)' % (
56835682 C .shape , Nx , Ny , funcname ))
56845683 else :
5685- if not (numCols in (Nx , Nx - 1 ) and numRows in (Ny , Ny - 1 )):
5684+ if not (ncols in (Nx , Nx - 1 ) and nrows in (Ny , Ny - 1 )):
56865685 raise TypeError ('Dimensions of C %s are incompatible with'
56875686 ' X (%d) and/or Y (%d); see help(%s)' % (
56885687 C .shape , Nx , Ny , funcname ))
0 commit comments