You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Internally, the parent is only used in `__init__`, so doesn't need to be
saved as an attribute. Externally, the constrained layout code needs the
parent only for subfigure margins, but we have the parent gridspec
available directly to use.
The `LayoutGrid` stores its children in a NumPy array, and saving the
parent causes a reference cycle. Apparently having one reference in a
C-level NumPy array causes Python to not realize it can garbage collect
the cycle, causing all `LayoutGrid` and its children to leak.
0 commit comments