@@ -120,6 +120,7 @@ class FigureBase(Artist):
120
120
Base class for `.Figure` and `.SubFigure` containing the methods that add
121
121
artists to the figure or subfigure, create Axes, etc.
122
122
"""
123
+
123
124
def __init__ (self , ** kwargs ):
124
125
super ().__init__ ()
125
126
# remove the non-figure artist _axes property
@@ -152,12 +153,12 @@ def __init__(self, **kwargs):
152
153
def _get_draw_artists (self , renderer ):
153
154
"""Also runs apply_aspect"""
154
155
artists = self .get_children ()
155
- for sfig in self .subfigs :
156
- artists .remove (sfig )
157
- childa = sfig .get_children ()
158
- for child in childa :
159
- if child in artists :
160
- artists .remove (child )
156
+ # for sfig in self.subfigs:
157
+ # artists.remove(sfig)
158
+ # childa = sfig.get_children()
159
+ # for child in childa:
160
+ # if child in artists:
161
+ # artists.remove(child)
161
162
162
163
artists .remove (self .patch )
163
164
artists = sorted (
@@ -2294,8 +2295,7 @@ def draw(self, renderer):
2294
2295
self .patch .draw (renderer )
2295
2296
mimage ._draw_list_compositing_images (
2296
2297
renderer , self , artists , self .figure .suppressComposite )
2297
- for sfig in self .subfigs :
2298
- sfig .draw (renderer )
2298
+
2299
2299
renderer .close_group ('subfigure' )
2300
2300
2301
2301
finally :
@@ -2782,8 +2782,8 @@ def set_constrained_layout(self, constrained):
2782
2782
self .stale = True
2783
2783
2784
2784
@_api .deprecated (
2785
- "3.6" , alternative = "figure.get_layout_engine().set()" ,
2786
- pending = True )
2785
+ "3.6" , alternative = "figure.get_layout_engine().set()" ,
2786
+ pending = True )
2787
2787
def set_constrained_layout_pads (self , ** kwargs ):
2788
2788
"""
2789
2789
Set padding for ``constrained_layout``.
@@ -3101,9 +3101,6 @@ def draw(self, renderer):
3101
3101
mimage ._draw_list_compositing_images (
3102
3102
renderer , self , artists , self .suppressComposite )
3103
3103
3104
- for sfig in self .subfigs :
3105
- sfig .draw (renderer )
3106
-
3107
3104
renderer .close_group ('figure' )
3108
3105
finally :
3109
3106
self .stale = False
0 commit comments