Update the viewlim and position from the view and position stack for each Axes.
(self)
| 3361 | self.set_history_buttons() |
| 3362 | |
| 3363 | def _update_view(self): |
| 3364 | """ |
| 3365 | Update the viewlim and position from the view and position stack for |
| 3366 | each Axes. |
| 3367 | """ |
| 3368 | nav_info = self._nav_stack() |
| 3369 | if nav_info is None: |
| 3370 | return |
| 3371 | # Retrieve all items at once to avoid any risk of GC deleting an Axes |
| 3372 | # while in the middle of the loop below. |
| 3373 | items = list(nav_info.items()) |
| 3374 | for ax, (view, (pos_orig, pos_active)) in items: |
| 3375 | ax._set_view(view) |
| 3376 | # Restore both the original and modified positions |
| 3377 | ax._set_position(pos_orig, 'original') |
| 3378 | ax._set_position(pos_active, 'active') |
| 3379 | self.canvas.draw_idle() |
| 3380 | |
| 3381 | def configure_subplots(self, *args): |
| 3382 | if hasattr(self, "subplot_tool"): |