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

Method update_from_data_y

lib/matplotlib/transforms.py:953–971  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 """

Callers 1

auto_scale_xyzMethod · 0.80

Calls 1

update_from_data_xyMethod · 0.95

Tested by

no test coverage detected