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

Skip to content

Commit 52c0b1d

Browse files
committed
doc: in pcolormesh docstring, say what it does.
1 parent 5154655 commit 52c0b1d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/matplotlib/axes.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7221,6 +7221,16 @@ def pcolormesh(self, *args, **kwargs):
72217221
pcolormesh(X, Y, C)
72227222
pcolormesh(C, **kwargs)
72237223
7224+
Create a pseudocolor plot of a 2-D array.
7225+
7226+
pcolormesh is similar to :func:`~matplotlib.pyplot.pcolor`,
7227+
but uses a different mechanism and returns a different
7228+
object; pcolor returns a
7229+
:class:`~matplotlib.collections.PolyCollection` but pcolormesh
7230+
returns a
7231+
:class:`~matplotlib.collections.QuadMesh`. It is much faster,
7232+
so it is almost always preferred for large arrays.
7233+
72247234
*C* may be a masked array, but *X* and *Y* may not. Masked
72257235
array support is implemented via *cmap* and *norm*; in
72267236
contrast, :func:`~matplotlib.pyplot.pcolor` simply does not

0 commit comments

Comments
 (0)