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

Skip to content

MNT: remove _gridspecs attribute on Figure classes #23623

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 18, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions lib/matplotlib/figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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)
Expand Down