Update the y-bounds of the `Bbox` based on the passed in data. After updating, the bounds will have positive *height*, and *y0* will be the minimal value. Parameters ---------- y : `~numpy.ndarray` Array of y-values. ignore : bool
(self, y, ignore=None)
| 951 | self.update_from_data_xy(np.array([x, x]).T, ignore=ignore, updatey=False) |
| 952 | |
| 953 | def update_from_data_y(self, y, ignore=None): |
| 954 | """ |
| 955 | Update the y-bounds of the `Bbox` based on the passed in data. After |
| 956 | updating, the bounds will have positive *height*, and *y0* will be the |
| 957 | minimal value. |
| 958 | |
| 959 | Parameters |
| 960 | ---------- |
| 961 | y : `~numpy.ndarray` |
| 962 | Array of y-values. |
| 963 | ignore : bool, optional |
| 964 | - When ``True``, ignore the existing bounds of the `Bbox`. |
| 965 | - When ``False``, include the existing bounds of the `Bbox`. |
| 966 | - When ``None``, use the last value passed to :meth:`ignore`. |
| 967 | """ |
| 968 | y = np.ravel(y) |
| 969 | # The x-component in np.array([*x*, y]).T is not used. We simply pass |
| 970 | # y again to not spend extra time on creating an array of unused data |
| 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 | """ |
no test coverage detected