@@ -5293,15 +5293,6 @@ def pcolor(self, *args, **kwargs):
5293
5293
*vmax* passed in here override any pre-existing values
5294
5294
supplied in the *norm* instance.
5295
5295
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
-
5305
5296
*edgecolors*: [ *None* | ``'none'`` | color | color sequence]
5306
5297
If *None*, the rc setting is used by default.
5307
5298
@@ -5391,11 +5382,6 @@ def pcolor(self, *args, **kwargs):
5391
5382
cmap = kwargs .pop ('cmap' , None )
5392
5383
vmin = kwargs .pop ('vmin' , None )
5393
5384
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' )
5399
5385
5400
5386
X , Y , C = self ._pcolorargs ('pcolor' , * args , allmatch = False )
5401
5387
Ny , Nx = X .shape
@@ -5445,11 +5431,6 @@ def pcolor(self, *args, **kwargs):
5445
5431
kwargs ['linewidths' ] = kwargs .pop ('linewidth' )
5446
5432
kwargs .setdefault ('linewidths' , linewidths )
5447
5433
5448
- if shading == 'faceted' :
5449
- edgecolors = 'k' ,
5450
- else :
5451
- edgecolors = 'none'
5452
-
5453
5434
if 'edgecolor' in kwargs :
5454
5435
kwargs ['edgecolors' ] = kwargs .pop ('edgecolor' )
5455
5436
ec = kwargs .setdefault ('edgecolors' , edgecolors )
0 commit comments