(fig)
| 2795 | |
| 2796 | @self.canvas.figure.add_axobserver |
| 2797 | def notify_axes_change(fig): |
| 2798 | # Called whenever the current Axes is changed. |
| 2799 | if self.toolmanager is None and self.toolbar is not None: |
| 2800 | self.toolbar.update() |
| 2801 | |
| 2802 | @classmethod |
| 2803 | def create_with_canvas(cls, canvas_class, figure, num): |