@@ -830,11 +830,10 @@ def from_extents(*args, minpos=None):
830830 ----------
831831 left, bottom, right, top : float
832832 The four extents of the bounding box.
833-
834833 minpos : float or None
835- If this is supplied, the Bbox will have a minimum positive value
836- set. This is useful when dealing with logarithmic scales and other
837- scales where negative bounds result in floating point errors.
834+ If this is supplied, the Bbox will have a minimum positive value
835+ set. This is useful when dealing with logarithmic scales and other
836+ scales where negative bounds result in floating point errors.
838837 """
839838 bbox = Bbox (np .reshape (args , (2 , 2 )))
840839 if minpos is not None :
@@ -858,11 +857,10 @@ def ignore(self, value):
858857 by subsequent calls to :meth:`update_from_data_xy`.
859858
860859 value : bool
861- - When ``True``, subsequent calls to :meth:`update_from_data_xy`
862- will ignore the existing bounds of the `Bbox`.
863-
864- - When ``False``, subsequent calls to :meth:`update_from_data_xy`
865- will include the existing bounds of the `Bbox`.
860+ - When ``True``, subsequent calls to `update_from_data_xy` will
861+ ignore the existing bounds of the `Bbox`.
862+ - When ``False``, subsequent calls to `update_from_data_xy` will
863+ include the existing bounds of the `Bbox`.
866864 """
867865 self ._ignore = value
868866
@@ -875,12 +873,10 @@ def update_from_path(self, path, ignore=None, updatex=True, updatey=True):
875873 Parameters
876874 ----------
877875 path : `~matplotlib.path.Path`
878-
879876 ignore : bool, optional
880- - when ``True``, ignore the existing bounds of the `Bbox`.
881- - when ``False``, include the existing bounds of the `Bbox`.
882- - when ``None``, use the last value passed to :meth:`ignore`.
883-
877+ - When ``True``, ignore the existing bounds of the `Bbox`.
878+ - When ``False``, include the existing bounds of the `Bbox`.
879+ - When ``None``, use the last value passed to :meth:`ignore`.
884880 updatex, updatey : bool, default: True
885881 When ``True``, update the x/y values.
886882 """
@@ -912,7 +908,6 @@ def update_from_data_x(self, x, ignore=None):
912908 ----------
913909 x : `~numpy.ndarray`
914910 Array of x-values.
915-
916911 ignore : bool, optional
917912 - When ``True``, ignore the existing bounds of the `Bbox`.
918913 - When ``False``, include the existing bounds of the `Bbox`.
@@ -932,34 +927,32 @@ def update_from_data_y(self, y, ignore=None):
932927 ----------
933928 y : `~numpy.ndarray`
934929 Array of y-values.
935-
936930 ignore : bool, optional
937- - When ``True``, ignore the existing bounds of the `Bbox`.
938- - When ``False``, include the existing bounds of the `Bbox`.
939- - When ``None``, use the last value passed to :meth:`ignore`.
931+ - When ``True``, ignore the existing bounds of the `Bbox`.
932+ - When ``False``, include the existing bounds of the `Bbox`.
933+ - When ``None``, use the last value passed to :meth:`ignore`.
940934 """
941935 y = np .ravel (y )
942936 self .update_from_data_xy (np .column_stack ([np .ones (y .size ), y ]),
943937 ignore = ignore , updatex = False )
944938
945939 def update_from_data_xy (self , xy , ignore = None , updatex = True , updatey = True ):
946940 """
947- Update the bounds of the `Bbox` based on the passed in data. After
948- updating, the bounds will have positive *width* and *height*;
941+ Update the `Bbox` bounds based on the passed in *xy* coordinates.
942+
943+ After updating, the bounds will have positive *width* and *height*;
949944 *x0* and *y0* will be the minimal values.
950945
951946 Parameters
952947 ----------
953- xy : `~numpy.ndarray`
954- A numpy array of 2D points.
955-
948+ xy : (N, 2) array-like
949+ The (x, y) coordinates.
956950 ignore : bool, optional
957- - When ``True``, ignore the existing bounds of the `Bbox`.
958- - When ``False``, include the existing bounds of the `Bbox`.
959- - When ``None``, use the last value passed to :meth:`ignore`.
960-
951+ - When ``True``, ignore the existing bounds of the `Bbox`.
952+ - When ``False``, include the existing bounds of the `Bbox`.
953+ - When ``None``, use the last value passed to :meth:`ignore`.
961954 updatex, updatey : bool, default: True
962- When ``True``, update the x/y values.
955+ When ``True``, update the x/y values.
963956 """
964957 if len (xy ) == 0 :
965958 return
@@ -1051,17 +1044,17 @@ def minposy(self):
10511044
10521045 def get_points (self ):
10531046 """
1054- Get the points of the bounding box directly as a numpy array
1055- of the form: ``[[x0, y0], [x1, y1]]``.
1047+ Get the points of the bounding box as an array of the form
1048+ ``[[x0, y0], [x1, y1]]``.
10561049 """
10571050 self ._invalid = 0
10581051 return self ._points
10591052
10601053 def set_points (self , points ):
10611054 """
1062- Set the points of the bounding box directly from a numpy array
1063- of the form: ``[[x0, y0], [x1, y1]]``. No error checking is
1064- performed, as this method is mainly for internal use.
1055+ Set the points of the bounding box directly from an array of the form
1056+ ``[[x0, y0], [x1, y1]]``. No error checking is performed, as this
1057+ method is mainly for internal use.
10651058 """
10661059 if np .any (self ._points != points ):
10671060 self ._points = points
@@ -1483,14 +1476,14 @@ def transform(self, values):
14831476
14841477 Parameters
14851478 ----------
1486- values : array
1487- The input values as NumPy array of length :attr:`input_dims` or
1479+ values : array-like
1480+ The input values as an array of length :attr:`input_dims` or
14881481 shape (N, :attr:`input_dims`).
14891482
14901483 Returns
14911484 -------
14921485 array
1493- The output values as NumPy array of length :attr:`output_dims` or
1486+ The output values as an array of length :attr:`output_dims` or
14941487 shape (N, :attr:`output_dims`), depending on the input.
14951488 """
14961489 # Ensure that values is a 2d array (but remember whether
@@ -1529,13 +1522,13 @@ def transform_affine(self, values):
15291522 Parameters
15301523 ----------
15311524 values : array
1532- The input values as NumPy array of length :attr:`input_dims` or
1525+ The input values as an array of length :attr:`input_dims` or
15331526 shape (N, :attr:`input_dims`).
15341527
15351528 Returns
15361529 -------
15371530 array
1538- The output values as NumPy array of length :attr:`output_dims` or
1531+ The output values as an array of length :attr:`output_dims` or
15391532 shape (N, :attr:`output_dims`), depending on the input.
15401533 """
15411534 return self .get_affine ().transform (values )
@@ -1554,13 +1547,13 @@ def transform_non_affine(self, values):
15541547 Parameters
15551548 ----------
15561549 values : array
1557- The input values as NumPy array of length :attr:`input_dims` or
1550+ The input values as an array of length :attr:`input_dims` or
15581551 shape (N, :attr:`input_dims`).
15591552
15601553 Returns
15611554 -------
15621555 array
1563- The output values as NumPy array of length :attr:`output_dims` or
1556+ The output values as an array of length :attr:`output_dims` or
15641557 shape (N, :attr:`output_dims`), depending on the input.
15651558 """
15661559 return values
@@ -1933,7 +1926,7 @@ def from_values(a, b, c, d, e, f):
19331926
19341927 def get_matrix (self ):
19351928 """
1936- Get the underlying transformation matrix as a 3x3 numpy array::
1929+ Get the underlying transformation matrix as a 3x3 array::
19371930
19381931 a c e
19391932 b d f
@@ -1948,7 +1941,7 @@ def get_matrix(self):
19481941
19491942 def set_matrix (self , mtx ):
19501943 """
1951- Set the underlying transformation matrix from a 3x3 numpy array::
1944+ Set the underlying transformation matrix from a 3x3 array::
19521945
19531946 a c e
19541947 b d f
0 commit comments