8000 Backport PR #14033: Reword add_subplot docstring. · matplotlib/matplotlib@f20ad22 · GitHub
[go: up one dir, main page]

Skip to content

Commit f20ad22

Browse files
dstansbyMeeseeksDev[bot]
authored andcommitted
Backport PR #14033: Reword add_subplot docstring.
1 parent ef28a45 commit f20ad22

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