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

Method _motion

lib/matplotlib/widgets.py:278–289  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

276
277 @_call_with_reparented_event
278 def _motion(self, event):
279 if self.ignore(event):
280 return
281 c = self.hovercolor if self.ax.contains(event)[0] else self.color
282 if not colors.same_color(c, self.ax.get_facecolor()):
283 self.ax.set_facecolor(c)
284 if self.drawon:
285 if self._useblit and self.canvas.supports_blit:
286 self.ax.draw_artist(self.ax)
287 self.canvas.blit(self.ax.bbox)
288 else:
289 self.canvas.draw()
290
291 def on_clicked(self, func):
292 """

Callers

nothing calls this directly

Calls 7

ignoreMethod · 0.45
containsMethod · 0.45
get_facecolorMethod · 0.45
set_facecolorMethod · 0.45
draw_artistMethod · 0.45
blitMethod · 0.45
drawMethod · 0.45

Tested by

no test coverage detected