Skip to content

Commit fb389ab

Browse files
authored
Merge pull request #21385 from dstansby/gridspec-doc
Document what indexing a GridSpec returns
2 parents 92b208a + f86c7f3 commit fb389ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/gridspec.py

+2
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,8 @@ class GridSpec(GridSpecBase):
330330
The location of the grid cells is determined in a similar way to
331331
`~.figure.SubplotParams` using *left*, *right*, *top*, *bottom*, *wspace*
332332
and *hspace*.
333+
334+
Indexing a GridSpec instance returns a `.SubplotSpec`.
333335
"""
334336
def __init__(self, nrows, ncols, figure=None,
335337
left=None, bottom=None, right=None, top=None,

0 commit comments

Comments
 (0)