Skip to content

Commit d2c9f4c

Browse files
committed
Update docs on SubplotBase
1 parent 4a99187 commit d2c9f4c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/matplotlib/axes/_subplots.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ def __init__(self, fig, *args, **kwargs):
3030
If *nrows*, *ncols*, and *index* are all single digit numbers, then
3131
*args* can be passed as a single 3-digit number (e.g. 234 for
3232
(2, 3, 4)).
33+
34+
**kwargs
35+
Keyword arguments are passed to the Axes (sub)class constructor.
3336
"""
3437

3538
self.figure = fig
@@ -78,15 +81,15 @@ def change_geometry(self, numrows, numcols, num):
7881
self.set_position(self.figbox)
7982

8083
def get_subplotspec(self):
81-
"""Return the SubplotSpec instance associated with the subplot."""
84+
"""Return the `.SubplotSpec` instance associated with the subplot."""
8285
return self._subplotspec
8386

8487
def set_subplotspec(self, subplotspec):
85-
"""Set the SubplotSpec instance associated with the subplot."""
88+
"""Set the `.SubplotSpec`. instance associated with the subplot."""
8689
self._subplotspec = subplotspec
8790

8891
def get_gridspec(self):
89-
"""Return the GridSpec instance associated with the subplot."""
92+
"""Return the `.GridSpec` instance associated with the subplot."""
9093
return self._subplotspec.get_gridspec()
9194

9295
def update_params(self):

0 commit comments

Comments
 (0)