|
43 | 43 | # All the other methods should go in the _AxesBase class. |
44 | 44 |
|
45 | 45 |
|
| 46 | +@docstring.interpd |
46 | 47 | class Axes(_AxesBase): |
47 | 48 | """ |
48 | 49 | The `Axes` contains most of the figure elements: `~.axis.Axis`, |
@@ -397,7 +398,7 @@ def indicate_inset(self, bounds, inset_ax=None, *, transform=None, |
397 | 398 | **kwargs |
398 | 399 | Other keyword arguments are passed on to the `.Rectangle` patch: |
399 | 400 |
|
400 | | - %(Rectangle_kwdoc)s |
| 401 | + %(Rectangle:kwdoc)s |
401 | 402 |
|
402 | 403 | Returns |
403 | 404 | ------- |
@@ -609,7 +610,7 @@ def text(self, x, y, s, fontdict=None, **kwargs): |
609 | 610 | **kwargs : `~matplotlib.text.Text` properties. |
610 | 611 | Other miscellaneous text parameters. |
611 | 612 |
|
612 | | - %(Text_kwdoc)s |
| 613 | + %(Text:kwdoc)s |
613 | 614 |
|
614 | 615 | Examples |
615 | 616 | -------- |
@@ -686,7 +687,7 @@ def axhline(self, y=0, xmin=0, xmax=1, **kwargs): |
686 | 687 | Valid keyword arguments are `.Line2D` properties, with the |
687 | 688 | exception of 'transform': |
688 | 689 |
|
689 | | - %(Line2D_kwdoc)s |
| 690 | + %(Line2D:kwdoc)s |
690 | 691 |
|
691 | 692 | See Also |
692 | 693 | -------- |
@@ -753,7 +754,7 @@ def axvline(self, x=0, ymin=0, ymax=1, **kwargs): |
753 | 754 | Valid keyword arguments are `.Line2D` properties, with the |
754 | 755 | exception of 'transform': |
755 | 756 |
|
756 | | - %(Line2D_kwdoc)s |
| 757 | + %(Line2D:kwdoc)s |
757 | 758 |
|
758 | 759 | See Also |
759 | 760 | -------- |
@@ -837,7 +838,7 @@ def axline(self, xy1, xy2=None, *, slope=None, **kwargs): |
837 | 838 | **kwargs |
838 | 839 | Valid kwargs are `.Line2D` properties |
839 | 840 |
|
840 | | - %(Line2D_kwdoc)s |
| 841 | + %(Line2D:kwdoc)s |
841 | 842 |
|
842 | 843 | See Also |
843 | 844 | -------- |
@@ -905,7 +906,7 @@ def axhspan(self, ymin, ymax, xmin=0, xmax=1, **kwargs): |
905 | 906 | ---------------- |
906 | 907 | **kwargs : `~matplotlib.patches.Polygon` properties |
907 | 908 |
|
908 | | - %(Polygon_kwdoc)s |
| 909 | + %(Polygon:kwdoc)s |
909 | 910 |
|
910 | 911 | See Also |
911 | 912 | -------- |
@@ -953,7 +954,7 @@ def axvspan(self, xmin, xmax, ymin=0, ymax=1, **kwargs): |
953 | 954 | ---------------- |
954 | 955 | **kwargs : `~matplotlib.patches.Polygon` properties |
955 | 956 |
|
956 | | - %(Polygon_kwdoc)s |
| 957 | + %(Polygon:kwdoc)s |
957 | 958 |
|
958 | 959 | See Also |
959 | 960 | -------- |
@@ -1506,7 +1507,7 @@ def plot(self, *args, scalex=True, scaley=True, data=None, **kwargs): |
1506 | 1507 |
|
1507 | 1508 | Here is a list of available `.Line2D` properties: |
1508 | 1509 |
|
1509 | | - %(Line2D_kwdoc)s |
| 1510 | + %(Line2D:kwdoc)s |
1510 | 1511 |
|
1511 | 1512 | See Also |
1512 | 1513 | -------- |
@@ -1663,7 +1664,7 @@ def plot_date(self, x, y, fmt='o', tz=None, xdate=True, ydate=False, |
1663 | 1664 | **kwargs |
1664 | 1665 | Keyword arguments control the `.Line2D` properties: |
1665 | 1666 |
|
1666 | | - %(Line2D_kwdoc)s |
| 1667 | + %(Line2D:kwdoc)s |
1667 | 1668 |
|
1668 | 1669 | See Also |
1669 | 1670 | -------- |
@@ -2234,7 +2235,7 @@ def bar(self, x, height, width=0.8, bottom=None, *, align="center", |
2234 | 2235 |
|
2235 | 2236 | **kwargs : `.Rectangle` properties |
2236 | 2237 |
|
2237 | | - %(Rectangle_kwdoc)s |
| 2238 | + %(Rectangle:kwdoc)s |
2238 | 2239 |
|
2239 | 2240 | See Also |
2240 | 2241 | -------- |
@@ -2509,7 +2510,7 @@ def barh(self, y, width, height=0.8, left=None, *, align="center", |
2509 | 2510 |
|
2510 | 2511 | **kwargs : `.Rectangle` properties |
2511 | 2512 |
|
2512 | | - %(Rectangle_kwdoc)s |
| 2513 | + %(Rectangle:kwdoc)s |
2513 | 2514 |
|
2514 | 2515 | See Also |
2515 | 2516 | -------- |
@@ -2697,7 +2698,7 @@ def broken_barh(self, xranges, yrange, **kwargs): |
2697 | 2698 |
|
2698 | 2699 | Supported keywords: |
2699 | 2700 |
|
2700 | | - %(BrokenBarHCollection_kwdoc)s |
| 2701 | + %(BrokenBarHCollection:kwdoc)s |
2701 | 2702 | """ |
2702 | 2703 | # process the unit information |
2703 | 2704 | if len(xranges): |
@@ -3288,7 +3289,7 @@ def errorbar(self, x, y, yerr=None, xerr=None, |
3288 | 3289 |
|
3289 | 3290 | Valid kwargs for the marker properties are `.Line2D` properties: |
3290 | 3291 |
|
3291 | | - %(Line2D_kwdoc)s |
| 3292 | + %(Line2D:kwdoc)s |
3292 | 3293 | """ |
3293 | 3294 | kwargs = cbook.normalize_kwargs(kwargs, mlines.Line2D) |
3294 | 3295 | # anything that comes in as 'None', drop so the default thing |
@@ -4690,7 +4691,7 @@ def reduce_C_function(C: array) -> float |
4690 | 4691 | **kwargs : `~matplotlib.collections.PolyCollection` properties |
4691 | 4692 | All other keyword arguments are passed on to `.PolyCollection`: |
4692 | 4693 |
|
4693 | | - %(PolyCollection_kwdoc)s |
| 4694 | + %(PolyCollection:kwdoc)s |
4694 | 4695 |
|
4695 | 4696 | """ |
4696 | 4697 | self._process_unit_info([("x", x), ("y", y)], kwargs, convert=False) |
@@ -5199,7 +5200,7 @@ def _fill_between_x_or_y( |
5199 | 5200 | All other keyword arguments are passed on to `.PolyCollection`. |
5200 | 5201 | They control the `.Polygon` properties: |
5201 | 5202 |
|
5202 | | - %(PolyCollection_kwdoc)s |
| 5203 | + %(PolyCollection:kwdoc)s |
5203 | 5204 |
|
5204 | 5205 | See Also |
5205 | 5206 | -------- |
@@ -5806,7 +5807,7 @@ def pcolor(self, *args, shading=None, alpha=None, norm=None, cmap=None, |
5806 | 5807 | Additionally, the following arguments are allowed. They are passed |
5807 | 5808 | along to the `~matplotlib.collections.PolyCollection` constructor: |
5808 | 5809 |
|
5809 | | - %(PolyCollection_kwdoc)s |
| 5810 | + %(PolyCollection:kwdoc)s |
5810 | 5811 |
|
5811 | 5812 | See Also |
5812 | 5813 | -------- |
@@ -6051,7 +6052,7 @@ def pcolormesh(self, *args, alpha=None, norm=None, cmap=None, vmin=None, |
6051 | 6052 | Additionally, the following arguments are allowed. They are passed |
6052 | 6053 | along to the `~matplotlib.collections.QuadMesh` constructor: |
6053 | 6054 |
|
6054 | | - %(QuadMesh_kwdoc)s |
| 6055 | + %(QuadMesh:kwdoc)s |
6055 | 6056 |
|
6056 | 6057 | See Also |
6057 | 6058 | -------- |
@@ -7091,7 +7092,7 @@ def psd(self, x, NFFT=None, Fs=None, Fc=None, detrend=None, |
7091 | 7092 | **kwargs |
7092 | 7093 | Keyword arguments control the `.Line2D` properties: |
7093 | 7094 |
|
7094 | | - %(Line2D_kwdoc)s |
| 7095 | + %(Line2D:kwdoc)s |
7095 | 7096 |
|
7096 | 7097 | See Also |
7097 | 7098 | -------- |
@@ -7204,7 +7205,7 @@ def csd(self, x, y, NFFT=None, Fs=None, Fc=None, detrend=None, |
7204 | 7205 | **kwargs |
7205 | 7206 | Keyword arguments control the `.Line2D` properties: |
7206 | 7207 |
|
7207 | | - %(Line2D_kwdoc)s |
| 7208 | + %(Line2D:kwdoc)s |
7208 | 7209 |
|
7209 | 7210 | See Also |
7210 | 7211 | -------- |
@@ -7294,7 +7295,7 @@ def magnitude_spectrum(self, x, Fs=None, Fc=None, window=None, |
7294 | 7295 | **kwargs |
7295 | 7296 | Keyword arguments control the `.Line2D` properties: |
7296 | 7297 |
|
7297 | | - %(Line2D_kwdoc)s |
| 7298 | + %(Line2D:kwdoc)s |
7298 | 7299 |
|
7299 | 7300 | See Also |
7300 | 7301 | -------- |
@@ -7371,7 +7372,7 @@ def angle_spectrum(self, x, Fs=None, Fc=None, window=None, |
7371 | 7372 | **kwargs |
7372 | 7373 | Keyword arguments control the `.Line2D` properties: |
7373 | 7374 |
|
7374 | | - %(Line2D_kwdoc)s |
| 7375 | + %(Line2D:kwdoc)s |
7375 | 7376 |
|
7376 | 7377 | See Also |
7377 | 7378 | -------- |
@@ -7437,7 +7438,7 @@ def phase_spectrum(self, x, Fs=None, Fc=None, window=None, |
7437 | 7438 | **kwargs |
7438 | 7439 | Keyword arguments control the `.Line2D` properties: |
7439 | 7440 |
|
7440 | | - %(Line2D_kwdoc)s |
| 7441 | + %(Line2D:kwdoc)s |
7441 | 7442 |
|
7442 | 7443 | See Also |
7443 | 7444 | -------- |
@@ -7504,7 +7505,7 @@ def cohere(self, x, y, NFFT=256, Fs=2, Fc=0, detrend=mlab.detrend_none, |
7504 | 7505 | **kwargs |
7505 | 7506 | Keyword arguments control the `.Line2D` properties: |
7506 | 7507 |
|
7507 | | - %(Line2D_kwdoc)s |
| 7508 | + %(Line2D:kwdoc)s |
7508 | 7509 |
|
7509 | 7510 | References |
7510 | 7511 | ---------- |
@@ -7754,7 +7755,7 @@ def spy(self, Z, precision=0, marker=None, markersize=None, |
7754 | 7755 | For the marker style, you can pass any `.Line2D` property except |
7755 | 7756 | for *linestyle*: |
7756 | 7757 |
|
7757 | | - %(Line2D_kwdoc)s |
| 7758 | + %(Line2D:kwdoc)s |
7758 | 7759 | """ |
7759 | 7760 | if marker is None and markersize is None and hasattr(Z, 'tocoo'): |
7760 | 7761 | marker = 's' |
|
0 commit comments