|
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 |
@@ -4740,7 +4741,7 @@ def reduce_C_function(C: array) -> float |
4740 | 4741 | **kwargs : `~matplotlib.collections.PolyCollection` properties |
4741 | 4742 | All other keyword arguments are passed on to `.PolyCollection`: |
4742 | 4743 |
|
4743 | | - %(PolyCollection_kwdoc)s |
| 4744 | + %(PolyCollection:kwdoc)s |
4744 | 4745 |
|
4745 | 4746 | """ |
4746 | 4747 | self._process_unit_info([("x", x), ("y", y)], kwargs, convert=False) |
@@ -5249,7 +5250,7 @@ def _fill_between_x_or_y( |
5249 | 5250 | All other keyword arguments are passed on to `.PolyCollection`. |
5250 | 5251 | They control the `.Polygon` properties: |
5251 | 5252 |
|
5252 | | - %(PolyCollection_kwdoc)s |
| 5253 | + %(PolyCollection:kwdoc)s |
5253 | 5254 |
|
5254 | 5255 | See Also |
5255 | 5256 | -------- |
@@ -5847,7 +5848,7 @@ def pcolor(self, *args, shading=None, alpha=None, norm=None, cmap=None, |
5847 | 5848 | Additionally, the following arguments are allowed. They are passed |
5848 | 5849 | along to the `~matplotlib.collections.PolyCollection` constructor: |
5849 | 5850 |
|
5850 | | - %(PolyCollection_kwdoc)s |
| 5851 | + %(PolyCollection:kwdoc)s |
5851 | 5852 |
|
5852 | 5853 | See Also |
5853 | 5854 | -------- |
@@ -6092,7 +6093,7 @@ def pcolormesh(self, *args, alpha=None, norm=None, cmap=None, vmin=None, |
6092 | 6093 | Additionally, the following arguments are allowed. They are passed |
6093 | 6094 | along to the `~matplotlib.collections.QuadMesh` constructor: |
6094 | 6095 |
|
6095 | | - %(QuadMesh_kwdoc)s |
| 6096 | + %(QuadMesh:kwdoc)s |
6096 | 6097 |
|
6097 | 6098 | See Also |
6098 | 6099 | -------- |
@@ -7133,7 +7134,7 @@ def psd(self, x, NFFT=None, Fs=None, Fc=None, detrend=None, |
7133 | 7134 | **kwargs |
7134 | 7135 | Keyword arguments control the `.Line2D` properties: |
7135 | 7136 |
|
7136 | | - %(Line2D_kwdoc)s |
| 7137 | + %(Line2D:kwdoc)s |
7137 | 7138 |
|
7138 | 7139 | See Also |
7139 | 7140 | -------- |
@@ -7246,7 +7247,7 @@ def csd(self, x, y, NFFT=None, Fs=None, Fc=None, detrend=None, |
7246 | 7247 | **kwargs |
7247 | 7248 | Keyword arguments control the `.Line2D` properties: |
7248 | 7249 |
|
7249 | | - %(Line2D_kwdoc)s |
| 7250 | + %(Line2D:kwdoc)s |
7250 | 7251 |
|
7251 | 7252 | See Also |
7252 | 7253 | -------- |
@@ -7336,7 +7337,7 @@ def magnitude_spectrum(self, x, Fs=None, Fc=None, window=None, |
7336 | 7337 | **kwargs |
7337 | 7338 | Keyword arguments control the `.Line2D` properties: |
7338 | 7339 |
|
7339 | | - %(Line2D_kwdoc)s |
| 7340 | + %(Line2D:kwdoc)s |
7340 | 7341 |
|
7341 | 7342 | See Also |
7342 | 7343 | -------- |
@@ -7413,7 +7414,7 @@ def angle_spectrum(self, x, Fs=None, Fc=None, window=None, |
7413 | 7414 | **kwargs |
7414 | 7415 | Keyword arguments control the `.Line2D` properties: |
7415 | 7416 |
|
7416 | | - %(Line2D_kwdoc)s |
| 7417 | + %(Line2D:kwdoc)s |
7417 | 7418 |
|
7418 | 7419 | See Also |
7419 | 7420 | -------- |
@@ -7479,7 +7480,7 @@ def phase_spectrum(self, x, Fs=None, Fc=None, window=None, |
7479 | 7480 | **kwargs |
7480 | 7481 | Keyword arguments control the `.Line2D` properties: |
7481 | 7482 |
|
7482 | | - %(Line2D_kwdoc)s |
| 7483 | + %(Line2D:kwdoc)s |
7483 | 7484 |
|
7484 | 7485 | See Also |
7485 | 7486 | -------- |
@@ -7546,7 +7547,7 @@ def cohere(self, x, y, NFFT=256, Fs=2, Fc=0, detrend=mlab.detrend_none, |
7546 | 7547 | **kwargs |
7547 | 7548 | Keyword arguments control the `.Line2D` properties: |
7548 | 7549 |
|
7549 | | - %(Line2D_kwdoc)s |
| 7550 | + %(Line2D:kwdoc)s |
7550 | 7551 |
|
7551 | 7552 | References |
7552 | 7553 | ---------- |
@@ -7796,7 +7797,7 @@ def spy(self, Z, precision=0, marker=None, markersize=None, |
7796 | 7797 | For the marker style, you can pass any `.Line2D` property except |
7797 | 7798 | for *linestyle*: |
7798 | 7799 |
|
7799 | | - %(Line2D_kwdoc)s |
| 7800 | + %(Line2D:kwdoc)s |
7800 | 7801 | """ |
7801 | 7802 | if marker is None and markersize is None and hasattr(Z, 'tocoo'): |
7802 | 7803 | marker = 's' |
|
0 commit comments