Skip to content

Commit ba400c2

Browse files
authored
Merge pull request #23623 from tacaswell/mnt_remove_dead_code
MNT: remove _gridspecs attribute on Figure classes
2 parents 17a7aca + 59009bd commit ba400c2

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/matplotlib/figure.py

-6
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,6 @@ def __init__(self, **kwargs):
178178
self._align_label_groups = {"x": cbook.Grouper(), "y": cbook.Grouper()}
179179

180180
self.figure = self
181-
# list of child gridspecs for this figure
182-
self._gridspecs = []
183181
self._localaxes = [] # track all axes
184182
self.artists = []
185183
self.lines = []
@@ -1508,7 +1506,6 @@ def add_gridspec(self, nrows=1, ncols=1, **kwargs):
15081506

15091507
_ = kwargs.pop('figure', None) # pop in case user has added this...
15101508
gs = GridSpec(nrows=nrows, ncols=ncols, figure=self, **kwargs)
1511-
self._gridspecs.append(gs)
15121509
return gs
15131510

15141511
def subfigures(self, nrows=1, ncols=1, squeeze=True,
@@ -2493,9 +2490,6 @@ def __init__(self,
24932490
self._axstack = _AxesStack() # track all figure axes and current axes
24942491
self.clear()
24952492

2496-
# list of child gridspecs for this figure
2497-
self._gridspecs = []
2498-
24992493
def pick(self, mouseevent):
25002494
if not self.canvas.widgetlock.locked():
25012495
super().pick(mouseevent)

0 commit comments

Comments
 (0)