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

Skip to content

Commit e1bd2d2

Browse files
committed
ENH: add subplots gridspec to list of gridspecs
1 parent 4a64f3d commit e1bd2d2

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
@@ -1341,6 +1341,7 @@ def subplots(self, nrows=1, ncols=1, sharex=False, sharey=False,
13411341
else:
13421342
# this should turn constrained_layout off if we don't want it
13431343
gs = GridSpec(nrows, ncols, figure=None, **gridspec_kw)
1344+
self._gridspecs.append(gs)
13441345

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

0 commit comments

Comments
 (0)