8000 Remove deprecated "shading" option to pcolor. · matplotlib/matplotlib@20c860b · GitHub
[go: up one dir, main page]

Skip to content

Commit 20c860b

Browse files
committed
Remove deprecated "shading" option to pcolor.
It has been deprecated since 1.2.
1 parent e086a5d commit 20c860b

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

doc/api/api_changes/code_removal.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,10 @@ removed.
2525

2626
Support for setting an ``Axes``' aspect to ``"normal"`` has been removed, in
2727
favor of the synonym ``"auto"``.
28+
29+
30+
``shading`` kwarg to ``pcolor``
31+
-------------------------------
32+
33+
The ``shading`` kwarg to ``pcolor`` has been removed. Set ``edgecolors``
34+
appropriately instead.

lib/matplotlib/axes/_axes.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -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

0 commit comments

Comments
 (0)
0