MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / onmove

Method onmove

site-packages/matplotlib/widgets.py:1285–1308  ·  view source on GitHub ↗

on mouse motion draw the cursor if visible

(self, event)

Source from the content-addressed store, hash-verified

1283 self.lineh.set_visible(False)
1284
1285 def onmove(self, event):
1286 """on mouse motion draw the cursor if visible"""
1287 if self.ignore(event):
1288 return
1289 if not self.canvas.widgetlock.available(self):
1290 return
1291 if event.inaxes != self.ax:
1292 self.linev.set_visible(False)
1293 self.lineh.set_visible(False)
1294
1295 if self.needclear:
1296 self.canvas.draw()
1297 self.needclear = False
1298 return
1299 self.needclear = True
1300 if not self.visible:
1301 return
1302 self.linev.set_xdata((event.xdata, event.xdata))
1303
1304 self.lineh.set_ydata((event.ydata, event.ydata))
1305 self.linev.set_visible(self.visible and self.vertOn)
1306 self.lineh.set_visible(self.visible and self.horizOn)
1307
1308 self._update()
1309
1310 def _update(self):
1311

Callers

nothing calls this directly

Calls 7

_updateMethod · 0.95
availableMethod · 0.80
set_xdataMethod · 0.80
set_ydataMethod · 0.80
ignoreMethod · 0.45
set_visibleMethod · 0.45
drawMethod · 0.45

Tested by

no test coverage detected