From c2a0f7fd60ebe3d7598b40eb90c6b9fd2952ff0d Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Tue, 1 Aug 2017 13:58:38 -0700 Subject: [PATCH] Undocument shading kwarg to pcolor. The kwarg doesn't even work anymore (`pcolor(np.random.rand(3, 3), shading="flat")` throws an exception). It has also been marked as deprecated in the docstring since at least 2008. --- lib/matplotlib/axes/_axes.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index 48e5717b324d..fc28d59a6a1b 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -5268,16 +5268,6 @@ def pcolor(self, *args, **kwargs): ``vmin`` or ``vmax`` passed in here override any pre-existing values supplied in the ``norm`` instance. - shading : {'flat', 'faceted'}, optional, default: 'flat' - This kwarg is deprecated; please use ``edgecolors`` instead - - - * ``shading='flat'``: ``edgecolors='none'`` - * ``shading='faceted'``: ``edgecolors='k'`` - - If 'faceted', a black grid is drawn around each rectangle; if - 'flat', edges are not drawn. Default is 'flat', contrary to - MATLAB. - edgecolors : {None, 'none', color, color sequence} If None, the rc setting is used by default. If 'none', edges will not be visible.