MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / update_from_data_xy

Method update_from_data_xy

lib/matplotlib/transforms.py:973–996  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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):

Callers 15

get_bboxMethod · 0.95
get_window_extentMethod · 0.95
update_from_data_xMethod · 0.95
update_from_data_yMethod · 0.95
auto_scale_xyzMethod · 0.80
rotatedMethod · 0.80
get_datalimMethod · 0.80
get_datalimMethod · 0.80
_make_vertsMethod · 0.80
__init__Method · 0.80

Calls 2

update_from_pathMethod · 0.95
PathClass · 0.85

Tested by

no test coverage detected