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

Method remove_state

lib/matplotlib/widgets.py:2662–2682  ·  view source on GitHub ↗

Remove a state to define the widget's behavior. See the *state_modifier_keys* parameter in the constructor of the concrete selector class for details. Parameters ---------- state : str Must be a supported state of the selector. See the

(self, state)

Source from the content-addressed store, hash-verified

2660 self._state.add(state)
2661
2662 def remove_state(self, state):
2663 """
2664 Remove a state to define the widget's behavior. See the
2665 *state_modifier_keys* parameter in the constructor of the concrete
2666 selector class for details.
2667
2668 Parameters
2669 ----------
2670 state : str
2671 Must be a supported state of the selector. See the
2672 *state_modifier_keys* parameter in the constructor of the concrete
2673 selector class for details.
2674
2675 Raises
2676 ------
2677 ValueError
2678 When the state is not supported by the selector.
2679
2680 """
2681 self._validate_state(state)
2682 self._state.remove(state)
2683
2684
2685class SpanSelector(_SelectorWidget):

Callers 1

Calls 2

_validate_stateMethod · 0.95
removeMethod · 0.45

Tested by 1