draw using newfangled blit or oldfangled draw depending on useblit
(self)
| 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""" |
no test coverage detected