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

Skip to content

Commit bfb77fa

Browse files
authored
Merge pull request #16017 from anntzer/subplot-noargs
Document support for no-args plt.subplot() call.
2 parents 20b43c2 + ffff8de commit bfb77fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/pyplot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,11 +822,12 @@ def subplot(*args, **kwargs):
822822
823823
subplot(nrows, ncols, index, **kwargs)
824824
subplot(pos, **kwargs)
825+
subplot(**kwargs)
825826
subplot(ax)
826827
827828
Parameters
828829
----------
829-
*args
830+
*args, default: (1, 1, 1)
830831
Either a 3-digit integer or three separate integers
831832
describing the position of the subplot. If the three
832833
integers are *nrows*, *ncols*, and *index* in order, the

0 commit comments

Comments
 (0)