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

Method _min_in_bounds

lib/matplotlib/widgets.py:874–883  ·  view source on GitHub ↗

Ensure the new min value is between valmin and self.val[1].

(self, min)

Source from the content-addressed store, hash-verified

872 verts[3] = vmax, .25
873
874 def _min_in_bounds(self, min):
875 """Ensure the new min value is between valmin and self.val[1]."""
876 if min <= self.valmin:
877 if not self.closedmin:
878 return self.val[0]
879 min = self.valmin
880
881 if min > self.val[1]:
882 min = self.val[1]
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]."""

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