Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

doc: in pcolormesh docstring, say what it does. #1082

Merged
merged 1 commit into from

1 participant

@efiring
Owner

Closes #703.

@efiring efiring merged commit 267b0cf into from
@efiring efiring deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 13, 2012
  1. @efiring
This page is out of date. Refresh to see the latest.
Showing with 10 additions and 0 deletions.
  1. +10 −0 lib/matplotlib/axes.py
View
10 lib/matplotlib/axes.py
@@ -7221,6 +7221,16 @@ def pcolormesh(self, *args, **kwargs):
pcolormesh(X, Y, C)
pcolormesh(C, **kwargs)
+ Create a pseudocolor plot of a 2-D array.
+
+ pcolormesh is similar to :func:`~matplotlib.pyplot.pcolor`,
+ but uses a different mechanism and returns a different
+ object; pcolor returns a
+ :class:`~matplotlib.collections.PolyCollection` but pcolormesh
+ returns a
+ :class:`~matplotlib.collections.QuadMesh`. It is much faster,
+ so it is almost always preferred for large arrays.
+
*C* may be a masked array, but *X* and *Y* may not. Masked
array support is implemented via *cmap* and *norm*; in
contrast, :func:`~matplotlib.pyplot.pcolor` simply does not
Something went wrong with that request. Please try again.