@@ -1661,19 +1661,17 @@ def _initialize_x_y(self, z):
16611661
16621662 contour([X, Y,] Z, [levels], **kwargs)
16631663
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.
16691667
16701668 Parameters
16711669 ----------
16721670 X, Y : array-like, optional
16731671 The coordinates of the values in *Z*.
16741672
16751673 *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
16771675 that ``len(X) == M`` is the number of columns in *Z* and
16781676 ``len(Y) == N`` is the number of rows in *Z*.
16791677
@@ -1705,8 +1703,7 @@ def _initialize_x_y(self, z):
17051703 nearest those points are always masked out, other triangular
17061704 corners comprising three unmasked points are contoured as usual.
17071705
1708- Defaults to ``rcParams['contour.corner_mask']``, which defaults to
1709- ``True``.
1706+ Defaults to :rc:`contour.corner_mask`, which defaults to ``True``.
17101707
17111708 colors : color string or sequence of colors, optional
17121709 The colors of the levels, i.e. the lines for `.contour` and the
@@ -1756,15 +1753,14 @@ def _initialize_x_y(self, z):
17561753 *None* in the rcParam is currently handled as 'lower'.
17571754
17581755 extent : (x0, x1, y0, y1), optional
1759- If *origin* is not *None*, then *extent* is interpreted as
1760- in :func:`matplotlib.pyplot.imshow`: it gives the outer
1761- pixel boundaries. In this case, the position of Z[0,0]
1762- is the center of the pixel, not a corner. If *origin* is
1763- *None*, then (*x0*, *y0*) is the position of Z[0,0], and
1764- (*x1*, *y1*) is the position of Z[-1,-1].
1756+ If *origin* is not *None*, then *extent* is interpreted as in
1757+ `.imshow`: it gives the outer pixel boundaries. In this case, the
1758+ position of Z[0,0] is the center of the pixel, not a corner. If
1759+ *origin* is *None*, then (*x0*, *y0*) is the position of Z[0,0],
1760+ and (*x1*, *y1*) is the position of Z[-1,-1].
17651761
1766- This keyword is not active if *X* and *Y* are specified in
1767- the call to contour.
1762+ This argument is ignored if *X* and *Y* are specified in the call
1763+ to contour.
17681764
17691765 locator : ticker.Locator subclass, optional
17701766 The locator is used to determine the contour levels if they
@@ -1830,20 +1826,17 @@ def _initialize_x_y(self, z):
18301826 Hatching is supported in the PostScript, PDF, SVG and Agg
18311827 backends only.
18321828
1833-
18341829 Notes
18351830 -----
1836- 1. :func:`~matplotlib.pyplot.contourf` differs from the MATLAB
1837- version in that it does not draw the polygon edges.
1838- To draw edges, add line contours with
1839- calls to :func:`~matplotlib.pyplot.contour`.
1831+ 1. `.contourf` differs from the MATLAB version in that it does not draw
1832+ the polygon edges. To draw edges, add line contours with calls to
1833+ `.contour`.
18401834
1841- 2. contourf fills intervals that are closed at the top; that
1842- is, for boundaries *z1* and *z2*, the filled region is::
1835+ 2. `. contourf` fills intervals that are closed at the top; that is, for
1836+ boundaries *z1* and *z2*, the filled region is::
18431837
18441838 z1 < Z <= z2
18451839
1846- There is one exception: if the lowest boundary coincides with
1847- the minimum value of the *Z* array, then that minimum value
1848- will be included in the lowest interval.
1840+ except for the lowest interval, which is closed on both sides (i.e.
1841+ it includes the lowest value).
18491842 """
0 commit comments