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

Method _motion

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

Source from the content-addressed store, hash-verified

1724
1725 @_call_with_reparented_event
1726 def _motion(self, event):
1727 if self.ignore(event):
1728 return
1729 c = self.hovercolor if self.ax.contains(event)[0] else self.color
1730 if not colors.same_color(c, self.ax.get_facecolor()):
1731 self.ax.set_facecolor(c)
1732 if self.drawon:
1733 self.ax.get_figure(root=True).canvas.draw()
1734
1735 def on_text_change(self, func):
1736 """

Callers

nothing calls this directly

Calls 6

ignoreMethod · 0.45
containsMethod · 0.45
get_facecolorMethod · 0.45
set_facecolorMethod · 0.45
drawMethod · 0.45
get_figureMethod · 0.45

Tested by

no test coverage detected