Update the `Bbox` bounds based on the passed in *xy* coordinates. After updating, the bounds will have positive *width* and *height*; *x0* and *y0* will be the minimal values. Parameters ---------- xy : (N, 2) array-like The (x, y) coord
(self, xy, ignore=None, updatex=True, updatey=True)
| 971 | self.update_from_data_xy(np.array([y, y]).T, ignore=ignore, updatex=False) |
| 972 | |
| 973 | def update_from_data_xy(self, xy, ignore=None, updatex=True, updatey=True): |
| 974 | """ |
| 975 | Update the `Bbox` bounds based on the passed in *xy* coordinates. |
| 976 | |
| 977 | After updating, the bounds will have positive *width* and *height*; |
| 978 | *x0* and *y0* will be the minimal values. |
| 979 | |
| 980 | Parameters |
| 981 | ---------- |
| 982 | xy : (N, 2) array-like |
| 983 | The (x, y) coordinates. |
| 984 | ignore : bool, optional |
| 985 | - When ``True``, ignore the existing bounds of the `Bbox`. |
| 986 | - When ``False``, include the existing bounds of the `Bbox`. |
| 987 | - When ``None``, use the last value passed to :meth:`ignore`. |
| 988 | updatex, updatey : bool, default: True |
| 989 | When ``True``, update the x/y values. |
| 990 | """ |
| 991 | if len(xy) == 0: |
| 992 | return |
| 993 | |
| 994 | path = Path(xy) |
| 995 | self.update_from_path(path, ignore=ignore, |
| 996 | updatex=updatex, updatey=updatey) |
| 997 | |
| 998 | @BboxBase.x0.setter |
| 999 | def x0(self, val): |
no test coverage detected