@@ -5293,15 +5293,6 @@ def pcolor(self, *args, **kwargs):
52935293 *vmax* passed in here override any pre-existing values
52945294 supplied in the *norm* instance.
52955295
5296- *shading*: [ 'flat' | 'faceted' ]
5297- If 'faceted', a black grid is drawn around each rectangle; if
5298- 'flat', edges are not drawn. Default is 'flat', contrary to
5299- MATLAB.
5300-
5301- This kwarg is deprecated; please use 'edgecolors' instead:
5302- * shading='flat' -- edgecolors='none'
5303- * shading='faceted -- edgecolors='k'
5304-
53055296 *edgecolors*: [ *None* | ``'none'`` | color | color sequence]
53065297 If *None*, the rc setting is used by default.
53075298
@@ -5391,11 +5382,6 @@ def pcolor(self, *args, **kwargs):
53915382 cmap = kwargs .pop ('cmap' , None )
53925383 vmin = kwargs .pop ('vmin' , None )
53935384 vmax = kwargs .pop ('vmax' , None )
5394- if 'shading' in kwargs :
5395- cbook .warn_deprecated (
5396- '1.2' , name = 'shading' , alternative = 'edgecolors' ,
5397- obj_type = 'option' )
5398- shading = kwargs .pop ('shading' , 'flat' )
53995385
54005386 X , Y , C = self ._pcolorargs ('pcolor' , * args , allmatch = False )
54015387 Ny , Nx = X .shape
@@ -5445,14 +5431,9 @@ def pcolor(self, *args, **kwargs):
54455431 kwargs ['linewidths' ] = kwargs .pop ('linewidth' )
54465432 kwargs .setdefault ('linewidths' , linewidths )
54475433
5448- if shading == 'faceted' :
5449- edgecolors = 'k' ,
5450- else :
5451- edgecolors = 'none'
5452-
54535434 if 'edgecolor' in kwargs :
54545435 kwargs ['edgecolors' ] = kwargs .pop ('edgecolor' )
5455- ec = kwargs .setdefault ('edgecolors' , edgecolors )
5436+ ec = kwargs .setdefault ('edgecolors' , 'none' )
54565437
54575438 # aa setting will default via collections to patch.antialiased
54585439 # unless the boundary is not stroked, in which case the
0 commit comments