@@ -2947,11 +2947,7 @@ def _update_title_position(self, renderer):
29472947 axs = self ._twinned_axes .get_siblings (self ) + self .child_axes
29482948 for ax in self .child_axes : # Child positions must be updated first.
29492949 locator = ax .get_axes_locator ()
2950- if locator :
2951- pos = locator (self , renderer )
2952- ax .apply_aspect (pos )
2953- else :
2954- ax .apply_aspect ()
2950+ ax .apply_aspect (locator (self , renderer ) if locator else None )
29552951
29562952 for title in titles :
29572953 x , _ = title .get_position ()
@@ -3014,11 +3010,7 @@ def draw(self, renderer):
30143010
30153011 # loop over self and child Axes...
30163012 locator = self .get_axes_locator ()
3017- if locator :
3018- pos = locator (self , renderer )
3019- self .apply_aspect (pos )
3020- else :
3021- self .apply_aspect ()
3013+ self .apply_aspect (locator (self , renderer ) if locator else None )
30223014
30233015 artists = self .get_children ()
30243016 artists .remove (self .patch )
@@ -4394,11 +4386,8 @@ def get_tightbbox(self, renderer=None, call_axes_locator=True,
43944386 return None
43954387
43964388 locator = self .get_axes_locator ()
4397- if locator and call_axes_locator :
4398- pos = locator (self , renderer )
4399- self .apply_aspect (pos )
4400- else :
4401- self .apply_aspect ()
4389+ self .apply_aspect (
4390+ locator (self , renderer ) if locator and call_axes_locator else None )
44024391
44034392 for axis in self ._axis_map .values ():
44044393 if self .axison and axis .get_visible ():
0 commit comments