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

Method update

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

draw using newfangled blit or oldfangled draw depending on useblit

(self)

Source from the content-addressed store, hash-verified

1523 event.button != self.eventpress.button)
1524
1525 def update(self):
1526 """draw using newfangled blit or oldfangled draw depending on
1527 useblit
1528
1529 """
1530 if not self.ax.get_visible():
1531 return False
1532
1533 if self.useblit:
1534 if self.background is not None:
1535 self.canvas.restore_region(self.background)
1536 for artist in self.artists:
1537 self.ax.draw_artist(artist)
1538
1539 self.canvas.blit(self.ax.bbox)
1540
1541 else:
1542 self.canvas.draw_idle()
1543 return False
1544
1545 def _get_data(self, event):
1546 """Get the xdata and ydata for event, with limits"""

Callers 9

on_key_pressMethod · 0.95
__init__Method · 0.45
_onmoveMethod · 0.45
__init__Method · 0.45
_pressMethod · 0.45
_releaseMethod · 0.45
extentsMethod · 0.45
_onmoveMethod · 0.45
_draw_polygonMethod · 0.45

Calls 5

get_visibleMethod · 0.80
restore_regionMethod · 0.45
draw_artistMethod · 0.45
blitMethod · 0.45
draw_idleMethod · 0.45

Tested by

no test coverage detected