Push the current view limits and position onto their respective stacks.
(self, figure=None)
| 521 | self.figure.canvas.draw_idle() |
| 522 | |
| 523 | def push_current(self, figure=None): |
| 524 | """ |
| 525 | Push the current view limits and position onto their respective stacks. |
| 526 | """ |
| 527 | if not figure: |
| 528 | figure = self.figure |
| 529 | views = WeakKeyDictionary() |
| 530 | pos = WeakKeyDictionary() |
| 531 | for a in figure.get_axes(): |
| 532 | views[a] = a._get_view() |
| 533 | pos[a] = self._axes_pos(a) |
| 534 | self.views[figure].push(views) |
| 535 | self.positions[figure].push(pos) |
| 536 | |
| 537 | def _axes_pos(self, ax): |
| 538 | """ |
no test coverage detected