diff --git a/lib/matplotlib/figure.py b/lib/matplotlib/figure.py index 59654d25e92c..56209da65bf9 100644 --- a/lib/matplotlib/figure.py +++ b/lib/matplotlib/figure.py @@ -178,8 +178,6 @@ def __init__(self, **kwargs): self._align_label_groups = {"x": cbook.Grouper(), "y": cbook.Grouper()} self.figure = self - # list of child gridspecs for this figure - self._gridspecs = [] self._localaxes = [] # track all axes self.artists = [] self.lines = [] @@ -1508,7 +1506,6 @@ def add_gridspec(self, nrows=1, ncols=1, **kwargs): _ = kwargs.pop('figure', None) # pop in case user has added this... gs = GridSpec(nrows=nrows, ncols=ncols, figure=self, **kwargs) - self._gridspecs.append(gs) return gs def subfigures(self, nrows=1, ncols=1, squeeze=True, @@ -2493,9 +2490,6 @@ def __init__(self, self._axstack = _AxesStack() # track all figure axes and current axes self.clear() - # list of child gridspecs for this figure - self._gridspecs = [] - def pick(self, mouseevent): if not self.canvas.widgetlock.locked(): super().pick(mouseevent)