|
34 | 34 | from matplotlib.axes._secondary_axes import SecondaryAxis
|
35 | 35 | from matplotlib.container import BarContainer, ErrorbarContainer, StemContainer
|
36 | 36 |
|
37 |
| - |
38 | 37 | _log = logging.getLogger(__name__)
|
39 | 38 |
|
40 | 39 |
|
@@ -1979,6 +1978,11 @@ def acorr(self, x, **kwargs):
|
1979 | 1978 | The marker for plotting the data points.
|
1980 | 1979 | Only used if *usevlines* is ``False``.
|
1981 | 1980 |
|
| 1981 | + **kwargs |
| 1982 | + Additional parameters are passed to `.Axes.vlines` and |
| 1983 | + `.Axes.axhline` if *usevlines* is ``True``; otherwise they are |
| 1984 | + passed to `.Axes.plot`. |
| 1985 | +
|
1982 | 1986 | Notes
|
1983 | 1987 | -----
|
1984 | 1988 | The cross correlation is performed with `numpy.correlate` with
|
@@ -2048,6 +2052,11 @@ def xcorr(self, x, y, normed=True, detrend=mlab.detrend_none,
|
2048 | 2052 | The marker for plotting the data points.
|
2049 | 2053 | Only used if *usevlines* is ``False``.
|
2050 | 2054 |
|
| 2055 | + **kwargs |
| 2056 | + Additional parameters are passed to `.Axes.vlines` and |
| 2057 | + `.Axes.axhline` if *usevlines* is ``True``; otherwise they are |
| 2058 | + passed to `.Axes.plot`. |
| 2059 | +
|
2051 | 2060 | Notes
|
2052 | 2061 | -----
|
2053 | 2062 | The cross correlation is performed with `numpy.correlate` with
|
@@ -6315,6 +6324,12 @@ def pcolorfast(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
|
6315 | 6324 | - `.PcolorImage` for a non-regular rectangular grid.
|
6316 | 6325 | - `.QuadMesh` for a non-rectangular grid.
|
6317 | 6326 |
|
| 6327 | + Other Parameters |
| 6328 | + ---------------- |
| 6329 | + **kwargs |
| 6330 | + Supported additional parameters depend on the type of grid. |
| 6331 | + See return types of *image* for further description. |
| 6332 | +
|
6318 | 6333 | Notes
|
6319 | 6334 | -----
|
6320 | 6335 | .. [notes section required to get data note injection right]
|
@@ -6410,9 +6425,25 @@ def contourf(self, *args, **kwargs):
|
6410 | 6425 | return contours
|
6411 | 6426 | contourf.__doc__ = mcontour.QuadContourSet._contour_doc
|
6412 | 6427 |
|
6413 |
| - def clabel(self, CS, *args, **kwargs): |
6414 |
| - return CS.clabel(*args, **kwargs) |
6415 |
| - clabel.__doc__ = mcontour.ContourSet.clabel.__doc__ |
| 6428 | + def clabel(self, CS, levels=None, **kwargs): |
| 6429 | + """ |
| 6430 | + Label a contour plot. |
| 6431 | +
|
| 6432 | + Adds labels to line contours in given `.ContourSet`. |
| 6433 | +
|
| 6434 | + Parameters |
| 6435 | + ---------- |
| 6436 | + CS : `~.ContourSet` instance |
| 6437 | + Line contours to label. |
| 6438 | +
|
| 6439 | + levels : array-like, optional |
| 6440 | + A list of level values, that should be labeled. The list must be |
| 6441 | + a subset of ``CS.levels``. If not given, all levels are labeled. |
| 6442 | +
|
| 6443 | + **kwargs |
| 6444 | + All other parameters are documented in `~.ContourLabeler.clabel`. |
| 6445 | + """ |
| 6446 | + return CS.clabel(levels, **kwargs) |
6416 | 6447 |
|
6417 | 6448 | #### Data analysis
|
6418 | 6449 |
|
@@ -6590,7 +6621,8 @@ def hist(self, x, bins=None, range=None, density=False, weights=None,
|
6590 | 6621 |
|
6591 | 6622 | Other Parameters
|
6592 | 6623 | ----------------
|
6593 |
| - **kwargs : `~matplotlib.patches.Patch` properties |
| 6624 | + **kwargs |
| 6625 | + `~matplotlib.patches.Patch` properties |
6594 | 6626 |
|
6595 | 6627 | See also
|
6596 | 6628 | --------
|
@@ -6883,6 +6915,7 @@ def hist(self, x, bins=None, range=None, density=False, weights=None,
|
6883 | 6915 | return tops, bins, cbook.silent_list('Lists of Patches', patches)
|
6884 | 6916 |
|
6885 | 6917 | @_preprocess_data(replace_names=["x", "y", "weights"])
|
| 6918 | + @docstring.dedent_interpd |
6886 | 6919 | def hist2d(self, x, y, bins=10, range=None, density=False, weights=None,
|
6887 | 6920 | cmin=None, cmax=None, **kwargs):
|
6888 | 6921 | """
|
@@ -6959,6 +6992,11 @@ def hist2d(self, x, y, bins=10, range=None, density=False, weights=None,
|
6959 | 6992 | alpha : ``0 <= scalar <= 1`` or ``None``, optional
|
6960 | 6993 | The alpha blending value.
|
6961 | 6994 |
|
| 6995 | + **kwargs |
| 6996 | + Additional parameters are passed along to the |
| 6997 | + `~.Axes.pcolormesh` method and `~matplotlib.collections.QuadMesh` |
| 6998 | + constructor. |
| 6999 | +
|
6962 | 7000 | See also
|
6963 | 7001 | --------
|
6964 | 7002 | hist : 1D histogram plotting
|
|
0 commit comments