Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 52c0b1d

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

File tree

Expand file treeCollapse file tree

1 file changed

+10
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+10
-0
lines changed

‎lib/matplotlib/axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes.py
+10Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.