@@ -4498,12 +4498,13 @@ def label_outer(self):
44984498 labels are on the top side); y-labels only for subplots on the first
44994499 column (or last column, if labels are on the right side).
45004500 """
4501- self ._label_outer_xaxis (check_patch = False )
4502- self ._label_outer_yaxis (check_patch = False )
4501+ self ._label_outer_xaxis (skip_non_rectangular_axes = False )
4502+ self ._label_outer_yaxis (skip_non_rectangular_axes = False )
45034503
4504- def _label_outer_xaxis (self , * , check_patch ):
4504+ def _label_outer_xaxis (self , * , skip_non_rectangular_axes ):
45054505 # see documentation in label_outer.
4506- if check_patch and not isinstance (self .patch , mpl .patches .Rectangle ):
4506+ if skip_non_rectangular_axes and not isinstance (self .patch ,
4507+ mpl .patches .Rectangle ):
45074508 return
45084509 ss = self .get_subplotspec ()
45094510 if not ss :
@@ -4522,9 +4523,10 @@ def _label_outer_xaxis(self, *, check_patch):
45224523 if self .xaxis .offsetText .get_position ()[1 ] == 0 :
45234524 self .xaxis .offsetText .set_visible (False )
45244525
4525- def _label_outer_yaxis (self , * , check_patch ):
4526+ def _label_outer_yaxis (self , * , skip_non_rectangular_axes ):
45264527 # see documentation in label_outer.
4527- if check_patch and not isinstance (self .patch , mpl .patches .Rectangle ):
4528+ if skip_non_rectangular_axes and not isinstance (self .patch ,
4529+ mpl .patches .Rectangle ):
45284530 return
45294531 ss = self .get_subplotspec ()
45304532 if not ss :
0 commit comments