10000 Merge pull request #14037 from meeseeksmachine/auto-backport-of-pr-14… · matplotlib/matplotlib@122a261 · GitHub
[go: up one dir, main page]

Skip to content

Commit 122a261

Browse files
authored
Merge pull request #14037 from meeseeksmachine/auto-backport-of-pr-14033-on-v3.1.x
Backport PR #14033 on branch v3.1.x (Reword add_subplot docstring.)
2 parents 5e8319a + f20ad22 commit 122a261

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

lib/matplotlib/figure.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,6 +1288,10 @@ def add_subplot(self, *args, **kwargs):
12881288
12891289
If no positional arguments are passed, defaults to (1, 1, 1).
12901290
1291+
In rare circumstances, `.add_subplot` may be called with a single
1292+
argument, a subplot axes instance already created in the
1293+
present figure but not in the figure's list of axes.
1294+
12911295
projection : {None, 'aitoff', 'hammer', 'lambert', 'mollweide', \
12921296
'polar', 'rectilinear', str}, optional
12931297
The projection type of the subplot (`~.axes.Axes`). *str* is the
@@ -1317,8 +1321,7 @@ def add_subplot(self, *args, **kwargs):
13171321
13181322
Returns
13191323
-------
1320-
axes : an `.axes.SubplotBase` subclass of `~.axes.Axes` (or a \
1321-
subclass of `~.axes.Axes`)
1324+
axes : `.axes.SubplotBase`, or another subclass of `~.axes.Axes`
13221325
13231326
The axes of the subplot. The returned axes base class depends on
13241327
the projection used. It is `~.axes.Axes` if rectilinear projection
@@ -1337,10 +1340,6 @@ def add_subplot(self, *args, **kwargs):
13371340
two subplots that are otherwise identical to be added to the figure,
13381341
make sure you give them unique labels.
13391342
1340-
In rare circumstances, `.add_subplot` may be called with a single
1341-
argument, a subplot axes instance already created in the
1342-
present figure but not in the figure's list of axes.
1343-
13441343
See Also
13451344
--------
13461345
.Figure.add_axes

0 commit comments

Comments
 (0)
0