5772 | | - If True (default), and X and Y are the same size as C in their | | 5774 | + If True (default), and *X* and *Y* are the same size as C in their |
5773 | 5775 | respective dimensions, drop the last element of C in both |
5774 | | - dimensions. If False, interpolate X and Y to their midpoints |
5775 | | - and extrapolate their endpoints. |
| 5776 | + dimensions. If False, *X* and *Y* are assumed to the the midpoints |
| 5777 | + of the quadrilaterals, and their edgese are calculated by linear |
| 5778 | + interpolation. |
5776 | 5779 |
|
5777 | 5780 | Returns |
5778 | 5781 | ------- |
@@ -5824,7 +5827,10 @@ def pcolor(self, *args, alpha=None, norm=None, cmap=None, vmin=None, |
5824 | 5827 | ``pcolor()`` displays all columns of *C* if *X* and *Y* are not |
5825 | 5828 | specified, or if *X* and *Y* have one more column than *C*. |
5826 | 5829 | If *X* and *Y* have the same number of columns as *C* then the last |
5827 | | - column of *C* is dropped. Similarly for the rows. |
| 5830 | + column of *C* is dropped if *dropdata* is True. Similarly for the rows. |
| 5831 | + If *dropdata* is false, then *X* and *Y* are assumed to be at the |
| 5832 | + middle of the quadrilaterals, and the edges of the quadrilaterals are |
| 5833 | + linearly interpolated. |
5828 | 5834 |
|
5829 | 5835 | Note: This behavior is different from MATLAB's ``pcolor()``, which |
5830 | 5836 | always discards the last row and column of *C*. |
@@ -5938,9 +5944,9 @@ def pcolormesh(self, *args, alpha=None, norm=None, cmap=None, vmin=None, |
5938 | 5944 |
|
5939 | 5945 | *X* and *Y* can be used to specify the corners of the quadrilaterals. |
5940 | 5946 |
|
5941 | | - .. note:: |
| 5947 | + .. hint:: |
5942 | 5948 |
|
5943 | | - `~Axes.pcolormesh` is similar to `~Axes.pcolor`. It's much faster |
| 5949 | + `~Axes.pcolormesh` is similar to `~Axes.pcolor`. It is much faster |
5944 | 5950 | and preferred in most cases. For a detailed discussion on the |
5945 | 5951 | differences see :ref:`Differences between pcolor() and pcolormesh() |
5946 | 5952 | <differences-pcolor-pcolormesh>`. |
@@ -6018,10 +6024,11 @@ def pcolormesh(self, *args, alpha=None, norm=None, cmap=None, vmin=None, |
6018 | 6024 | Whether to snap the mesh to pixel boundaries. |
6019 | 6025 |
|
6020 | 6026 | dropdata: bool, default: True |
6021 | | - If True (default), and X and Y are the same size as C in their |
| 6027 | + If True (default), and *X* and *Y* are the same size as C in their |
6022 | 6028 | respective dimensions, drop the last element of C in both |
6023 | | - dimensions. If False, interpolate X and Y to their midpoints |
6024 | | - and extrapolate their endpoints. |
| 6029 | + dimensions. If False, *X* and *Y* are assumed to the the midpoints |
| 6030 | + of the quadrilaterals, and their edgese are calculated by linear |
| 6031 | + interpolation. |
6025 | 6032 |
|
6026 | 6033 | Returns |
6027 | 6034 | ------- |
|
0 commit comments