Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a57b6c4

Browse files
committed
DOC: add arguemnetless call to add_subplot docstring
1 parent 68fd1d2 commit a57b6c4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/figure.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,6 +1261,7 @@ def add_subplot(self, *args, **kwargs):
12611261
add_subplot(nrows, ncols, index, **kwargs)
12621262
add_subplot(pos, **kwargs)
12631263
add_subplot(ax)
1264+
add_subplot()
12641265
12651266
Parameters
12661267
----------
@@ -1278,6 +1279,8 @@ def add_subplot(self, *args, **kwargs):
12781279
fig.add_subplot(2, 3, 5). Note that all integers must be less than
12791280
10 for this form to work.
12801281
1282+
If no positional arguments are passed, defaults to (1, 1, 1).
1283+
12811284
projection : {None, 'aitoff', 'hammer', 'lambert', 'mollweide', \
12821285
'polar', 'rectilinear', str}, optional
12831286
The projection type of the subplot (`~.axes.Axes`). *str* is the

0 commit comments

Comments
 (0)