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

Method _value_in_bounds

lib/matplotlib/widgets.py:896–898  ·  view source on GitHub ↗

Clip min, max values to the bounds.

(self, vals)

Source from the content-addressed store, hash-verified

894 return self._stepped_value(max)
895
896 def _value_in_bounds(self, vals):
897 """Clip min, max values to the bounds."""
898 return (self._min_in_bounds(vals[0]), self._max_in_bounds(vals[1]))
899
900 def _update_val_from_pos(self, pos):
901 """Update the slider value based on a given position."""

Callers 2

__init__Method · 0.95
set_valMethod · 0.95

Calls 2

_min_in_boundsMethod · 0.95
_max_in_boundsMethod · 0.95

Tested by

no test coverage detected