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

Method _clear

lib/matplotlib/widgets.py:1168–1174  ·  view source on GitHub ↗

Internal event handler to clear the buttons.

(self, event)

Source from the content-addressed store, hash-verified

1166 raise NotImplementedError("This method should be defined in subclasses")
1167
1168 def _clear(self, event):
1169 """Internal event handler to clear the buttons."""
1170 if self.ignore(event) or self.canvas.is_saving():
1171 return
1172 if self._useblit and self.canvas.supports_blit:
1173 self._save_blit_background(self.canvas.copy_from_bbox(self.ax.bbox))
1174 self.ax.draw_artist(self._buttons)
1175
1176 def set_label_props(self, props):
1177 """

Callers

nothing calls this directly

Calls 5

is_savingMethod · 0.80
_save_blit_backgroundMethod · 0.80
ignoreMethod · 0.45
copy_from_bboxMethod · 0.45
draw_artistMethod · 0.45

Tested by

no test coverage detected