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

Method set_check_props

lib/matplotlib/widgets.py:1377–1395  ·  view source on GitHub ↗

Set properties of the check button checks. .. versionadded:: 3.7 Parameters ---------- props : dict Dictionary of `.Collection` properties to be used for the check button check.

(self, props)

Source from the content-addressed store, hash-verified

1375 self._frames.update(props)
1376
1377 def set_check_props(self, props):
1378 """
1379 Set properties of the check button checks.
1380
1381 .. versionadded:: 3.7
1382
1383 Parameters
1384 ----------
1385 props : dict
1386 Dictionary of `.Collection` properties to be used for the check
1387 button check.
1388 """
1389 _api.check_isinstance(dict, props=props)
1390 if 's' in props: # Keep API consistent with constructor.
1391 props['sizes'] = np.broadcast_to(props.pop('s'), len(self.labels))
1392 actives = self.get_status()
1393 self._buttons.update(props)
1394 # If new colours are supplied, then we must re-apply the status.
1395 self._init_status(actives)
1396
1397 def set_active(self, index, state=None):
1398 """

Callers 1

test_check_button_propsFunction · 0.95

Calls 4

get_statusMethod · 0.95
_init_statusMethod · 0.95
popMethod · 0.45
updateMethod · 0.45

Tested by 1

test_check_button_propsFunction · 0.76