Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 55601ee

Browse files
committed
revert original default
1 parent e1dacce commit 55601ee

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5365,6 +5365,12 @@ def pcolor(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
53655365
snap : bool, optional, default: False
53665366
Whether to snap the mesh to pixel boundaries.
53675367
5368+
dropdata: bool, default: True
5369+
If True (default), and X and Y are the same size as C in their
5370+
respective dimensions, drop the last element of C in both
5371+
dimensions. If False, interpolate X and Y to their midpoints
5372+
and extrapolate their endpoints.
5373+
53685374
Returns
53695375
-------
53705376
collection : `matplotlib.collections.Collection`
@@ -5685,7 +5691,8 @@ def pcolormesh(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
56855691

56865692
allmatch = (shading == 'gouraud')
56875693

5688-
X, Y, C = self._pcolorargs('pcolormesh', *args, allmatch=allmatch)
5694+
X, Y, C = self._pcolorargs('pcolormesh', *args,
5695+
allmatch=allmatch, dropdata=dropdata)
56895696
Ny, Nx = X.shape
56905697
X = X.ravel()
56915698
Y = Y.ravel()

0 commit comments

Comments
 (0)