@@ -5297,15 +5297,6 @@ def pcolor(self, *args, **kwargs):
5297
5297
*vmax* passed in here override any pre-existing values
5298
5298
supplied in the *norm* instance.
5299
5299
5300
- *shading*: [ 'flat' | 'faceted' ]
5301
- If 'faceted', a black grid is drawn around each rectangle; if
5302
- 'flat', edges are not drawn. Default is 'flat', contrary to
5303
- MATLAB.
5304
-
5305
- This kwarg is deprecated; please use 'edgecolors' instead:
5306
- * shading='flat' -- edgecolors='none'
5307
- * shading='faceted -- edgecolors='k'
5308
-
5309
5300
*edgecolors*: [ *None* | ``'none'`` | color | color sequence]
5310
5301
If *None*, the rc setting is used by default.
5311
5302
@@ -5395,11 +5386,6 @@ def pcolor(self, *args, **kwargs):
5395
5386
cmap = kwargs .pop ('cmap' , None )
5396
5387
vmin = kwargs .pop ('vmin' , None )
5397
5388
vmax = kwargs .pop ('vmax' , None )
5398
- if 'shading' in kwargs :
5399
- cbook .warn_deprecated (
5400
- '1.2' , name = 'shading' , alternative = 'edgecolors' ,
5401
- obj_type = 'option' )
5402
- shading = kwargs .pop ('shading' , 'flat' )
5403
5389
5404
5390
X , Y , C = self ._pcolorargs ('pcolor' , * args , allmatch = False )
5405
5391
Ny , Nx = X .shape
@@ -5449,14 +5435,9 @@ def pcolor(self, *args, **kwargs):
5449
5435
kwargs ['linewidths' ] = kwargs .pop ('linewidth' )
5450
5436
kwargs .setdefault ('linewidths' , linewidths )
5451
5437
5452
- if shading == 'faceted' :
5453
- edgecolors = 'k' ,
5454
- else :
5455
- edgecolors = 'none'
5456
-
5457
5438
if 'edgecolor' in kwargs :
5458
5439
kwargs ['edgecolors' ] = kwargs .pop ('edgecolor' )
5459
- ec = kwargs .setdefault ('edgecolors' , edgecolors )
5440
+ ec = kwargs .setdefault ('edgecolors' , 'none' )
5460
5441
5461
5442
# aa setting will default via collections to patch.antialiased
5462
5443
# unless the boundary is not stroked, in which case the
0 commit comments