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

Method onmove

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

Source from the content-addressed store, hash-verified

4439
4440 @_call_with_reparented_event
4441 def onmove(self, event):
4442 if (self.ignore(event)
4443 or self.verts is None
4444 or event.button != 1
4445 or not self.ax.contains(event)[0]):
4446 return
4447 self.verts.append((event.xdata, event.ydata))
4448 self.line.set_data(list(zip(*self.verts)))
4449
4450 if self.useblit:
4451 self.canvas.restore_region(self.background)
4452 self.ax.draw_artist(self.line)
4453 self.canvas.blit(self.ax.bbox)
4454 else:
4455 self.canvas.draw_idle()

Callers

nothing calls this directly

Calls 7

ignoreMethod · 0.45
containsMethod · 0.45
set_dataMethod · 0.45
restore_regionMethod · 0.45
draw_artistMethod · 0.45
blitMethod · 0.45
draw_idleMethod · 0.45

Tested by

no test coverage detected