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

Method _max_in_bounds

lib/matplotlib/widgets.py:885–894  ·  view source on GitHub ↗

Ensure the new max value is between valmax and self.val[0].

(self, max)

Source from the content-addressed store, hash-verified

883 return self._stepped_value(min)
884
885 def _max_in_bounds(self, max):
886 """Ensure the new max value is between valmax and self.val[0]."""
887 if max >= self.valmax:
888 if not self.closedmax:
889 return self.val[1]
890 max = self.valmax
891
892 if max <= self.val[0]:
893 max = self.val[0]
894 return self._stepped_value(max)
895
896 def _value_in_bounds(self, vals):
897 """Clip min, max values to the bounds."""

Callers 2

_value_in_boundsMethod · 0.95
_update_val_from_posMethod · 0.95

Calls 1

_stepped_valueMethod · 0.80

Tested by

no test coverage detected