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

Method clear

lib/matplotlib/widgets.py:1460–1475  ·  view source on GitHub ↗

Uncheck all checkboxes.

(self)

Source from the content-addressed store, hash-verified

1458 for ec, active in zip(self._active_check_colors, actives)])
1459
1460 def clear(self):
1461 """Uncheck all checkboxes."""
1462
1463 self._buttons.set_facecolor(['none'] * len(self._active_check_colors))
1464
1465 if hasattr(self, '_lines'):
1466 for l1, l2 in self._lines:
1467 l1.set_visible(False)
1468 l2.set_visible(False)
1469
1470 if self.drawon:
1471 self.canvas.draw()
1472
1473 if self.eventson:
1474 # Call with no label, as all checkboxes are being cleared.
1475 self._observers.process('clicked', None)
1476
1477 def get_status(self):
1478 """

Callers 1

test_CheckButtonsFunction · 0.95

Calls 4

processMethod · 0.80
set_facecolorMethod · 0.45
set_visibleMethod · 0.45
drawMethod · 0.45

Tested by 1

test_CheckButtonsFunction · 0.76