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

Skip to content

Commit d138cda

Browse files
committed
ENH: add subplots gridspec to list of gridspecs
1 parent c553f8c commit d138cda

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/figure.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,6 +1351,7 @@ def subplots(self, nrows=1, ncols=1, sharex=False, sharey=False,
13511351
else:
13521352
# this should turn constrained_layout off if we don't want it
13531353
gs = GridSpec(nrows, ncols, figure=None, **gridspec_kw)
1354+
self._gridspecs.append(gs)
13541355

13551356
# Create array to hold all axes.
13561357
axarr = np.empty((nrows, ncols), dtype=object)

0 commit comments

Comments
 (0)