@@ -625,8 +625,6 @@ def new_locator(self, nx, nx1=None):
625
625
cell. When *nx1* is None, a single *nx*-th column is
626
626
specified. Otherwise location of columns spanning between *nx*
627
627
to *nx1* (but excluding *nx1*-th column) is specified.
628
- ny, ny1 : int
629
- Same as *nx* and *nx1*, but for row positions.
630
628
"""
631
629
return AxesLocator (self , nx , 0 , nx1 , None )
632
630
@@ -655,21 +653,7 @@ def _locate(self, x, y, w, h,
655
653
return x0 , y0 , ox , hh
656
654
657
655
def locate (self , nx , ny , nx1 = None , ny1 = None , axes = None , renderer = None ):
658
- """
659
- Parameters
660
- ----------
661
- axes_divider : AxesDivider
662
- nx, nx1 : int
663
- Integers specifying the column-position of the
664
- cell. When *nx1* is None, a single *nx*-th column is
665
- specified. Otherwise location of columns spanning between *nx*
666
- to *nx1* (but excluding *nx1*-th column) is specified.
667
- ny, ny1 : int
668
- Same as *nx* and *nx1*, but for row positions.
669
- axes
670
- renderer
671
- """
672
-
656
+ # docstring inherited
673
657
figW , figH = self ._fig .get_size_inches ()
674
658
x , y , w , h = self .get_position_runtime (axes , renderer )
675
659
@@ -707,27 +691,12 @@ def new_locator(self, ny, ny1=None):
707
691
return AxesLocator (self , 0 , ny , None , ny1 )
708
692
709
693
def locate (self , nx , ny , nx1 = None , ny1 = None , axes = None , renderer = None ):
710
- """
711
- Parameters
712
- ----------
713
- axes_divider : AxesDivider
714
- nx, nx1 : int
715
- Integers specifying the column-position of the
716
- cell. When *nx1* is None, a single *nx*-th column is
717
- specified. Otherwise location of columns spanning between *nx*
718
- to *nx1* (but excluding *nx1*-th column) is specified.
719
- ny, ny1 : int
720
- Same as *nx* and *nx1*, but for row positions.
721
- axes
722
- renderer
723
- """
724
-
694
+ # docstring inherited
725
695
figW , figH = self ._fig .get_size_inches ()
726
696
x , y , w , h = self .get_position_runtime (axes , renderer )
727
697
728
698
x_equivalent_sizes = self .get_horizontal_sizes (renderer )
729
699
y_appended_sizes = self .get_vertical_sizes (renderer )
730
-
731
700
y0 , x0 , oy , ww = self ._locate (y , x , h , w ,
732
701
x_equivalent_sizes , y_appended_sizes ,
733
702
figH , figW )
0 commit comments