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

Method clear

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

clear the cursor

(self, event)

Source from the content-addressed store, hash-verified

1274 self.needclear = False
1275
1276 def clear(self, event):
1277 """clear the cursor"""
1278 if self.ignore(event):
1279 return
1280 if self.useblit:
1281 self.background = self.canvas.copy_from_bbox(self.ax.bbox)
1282 self.linev.set_visible(False)
1283 self.lineh.set_visible(False)
1284
1285 def onmove(self, event):
1286 """on mouse motion draw the cursor if visible"""

Callers

nothing calls this directly

Calls 3

copy_from_bboxMethod · 0.80
ignoreMethod · 0.45
set_visibleMethod · 0.45

Tested by

no test coverage detected