@@ -1661,19 +1661,17 @@ def _initialize_x_y(self, z):
1661
1661
1662
1662
contour([X, Y,] Z, [levels], **kwargs)
1663
1663
1664
- :func:`~matplotlib.pyplot.contour` and
1665
- :func:`~matplotlib.pyplot.contourf` draw contour lines and
1666
- filled contours, respectively. Except as noted, function
1667
- signatures and return values are the same for both versions.
1668
-
1664
+ `.contour` and `.contourf` draw contour lines and filled contours,
1665
+ respectively. Except as noted, function signatures and return values
1666
+ are the same for both versions.
1669
1667
1670
1668
Parameters
1671
1669
----------
1672
1670
X, Y : array-like, optional
1673
1671
The coordinates of the values in *Z*.
1674
1672
1675
1673
*X* and *Y* must both be 2-D with the same shape as *Z* (e.g.
1676
- created via :func: `numpy.meshgrid`), or they must both be 1-D such
1674
+ created via `numpy.meshgrid`), or they must both be 1-D such
1677
1675
that ``len(X) == M`` is the number of columns in *Z* and
1678
1676
``len(Y) == N`` is the number of rows in *Z*.
1679
1677
@@ -1705,8 +1703,7 @@ def _initialize_x_y(self, z):
1705
1703
nearest those points are always masked out, other triangular
1706
1704
corners comprising three unmasked points are contoured as usual.
1707
1705
1708
- Defaults to ``rcParams['contour.corner_mask']``, which defaults to
1709
- ``True``.
1706
+ Defaults to :rc:`contour.corner_mask`, which defaults to ``True``.
1710
1707
1711
1708
colors : color string or sequence of colors, optional
1712
1709
The colors of the levels, i.e. the lines for `.contour` and the
@@ -1755,15 +1752,14 @@ def _initialize_x_y(self, z):
1755
1752
- 'image': Use the value from :rc:`image.origin`.
1756
1753
1757
1754
extent : (x0, x1, y0, y1), optional
1758
- If *origin* is not *None*, then *extent* is interpreted as
1759
- in :func:`matplotlib.pyplot.imshow`: it gives the outer
1760
- pixel boundaries. In this case, the position of Z[0,0]
1761
- is the center of the pixel, not a corner. If *origin* is
1762
- *None*, then (*x0*, *y0*) is the position of Z[0,0], and
1763
- (*x1*, *y1*) is the position of Z[-1,-1].
1755
+ If *origin* is not *None*, then *extent* is interpreted as in
1756
+ `.imshow`: it gives the outer pixel boundaries. In this case, the
1757
+ position of Z[0,0] is the center of the pixel, not a corner. If
1758
+ *origin* is *None*, then (*x0*, *y0*) is the position of Z[0,0],
1759
+ and (*x1*, *y1*) is the position of Z[-1,-1].
1764
1760
1765
- This keyword is not active if *X* and *Y* are specified in
1766
- the call to contour.
1761
+ This argument is ignored if *X* and *Y* are specified in the call
1762
+ to contour.
1767
1763
1768
1764
locator : ticker.Locator subclass, optional
1769
1765
The locator is used to determine the contour levels if they
@@ -1829,20 +1825,17 @@ def _initialize_x_y(self, z):
1829
1825
Hatching is supported in the PostScript, PDF, SVG and Agg
1830
1826
backends only.
1831
1827
1832
-
1833
1828
Notes
1834
1829
-----
1835
- 1. :func:`~matplotlib.pyplot.contourf` differs from the MATLAB
1836
- version in that it does not draw the polygon edges.
1837
- To draw edges, add line contours with
1838
- calls to :func:`~matplotlib.pyplot.contour`.
1830
+ 1. `.contourf` differs from the MATLAB version in that it does not draw
1831
+ the polygon edges. To draw edges, add line contours with calls to
1832
+ `.contour`.
1839
1833
1840
- 2. contourf fills intervals that are closed at the top; that
1841
- is, for boundaries *z1* and *z2*, the filled region is::
1834
+ 2. `. contourf` fills intervals that are closed at the top; that is, for
1835
+ boundaries *z1* and *z2*, the filled region is::
1842
1836
1843
1837
z1 < Z <= z2
1844
1838
1845
- There is one exception: if the lowest boundary coincides with
1846
- the minimum value of the *Z* array, then that minimum value
1847
- will be included in the lowest interval.
1839
+ except for the lowest interval, which is closed on both sides (i.e.
1840
+ it includes the lowest value).
1848
1841
"""
0 commit comments