@@ -7164,14 +7164,10 @@ def pcolormesh(self, *args, **kwargs):
71647164 and max of the color array *C* is used. If you pass a
71657165 *norm* instance, *vmin* and *vmax* will be ignored.
71667166
7167- *shading*: [ 'flat' | 'faceted' | 'gouraud' ]
7168- If 'faceted', a black grid is drawn around each rectangle; if
7169- 'flat', edges are not drawn. Default is 'flat', contrary to
7170- MATLAB.
7171-
7172- This kwarg is deprecated; please use 'edgecolors' instead:
7173- * shading='flat' -- edgecolors='None'
7174- * shading='faceted -- edgecolors='k'
7167+ *shading*: [ 'flat' | 'gouraud' ]
7168+ 'flat' indicates a solid color for each quad. When
7169+ 'gouraud', each quad will be Gouraud shaded. When gouraud
7170+ shading, edgecolors is ignored.
71757171
71767172 *edgecolors*: [ *None* | ``'None'`` | color | color sequence]
71777173 If *None*, the rc setting is used by default.
@@ -7205,7 +7201,6 @@ def pcolormesh(self, *args, **kwargs):
72057201 vmin = kwargs .pop ('vmin' , None )
72067202 vmax = kwargs .pop ('vmax' , None )
72077203 shading = kwargs .pop ('shading' , 'flat' ).lower ()
7208- edgecolors = kwargs .pop ('edgecolors' , 'None' )
72097204 antialiased = kwargs .pop ('antialiased' , False )
72107205
72117206 X , Y , C = self ._pcolorargs ('pcolormesh' , * args )
@@ -7224,13 +7219,8 @@ def pcolormesh(self, *args, **kwargs):
72247219 coords [:, 0 ] = X
72257220 coords [:, 1 ] = Y
72267221
7227- if shading == 'faceted' or edgecolors != 'None' :
7228- showedges = 1
7229- else :
7230- showedges = 0
7231-
72327222 collection = mcoll .QuadMesh (
7233- Nx - 1 , Ny - 1 , coords , showedges ,
7223+ Nx - 1 , Ny - 1 , coords ,
72347224 antialiased = antialiased , shading = shading , ** kwargs )
72357225 collection .set_alpha (alpha )
72367226 collection .set_array (C )
0 commit comments