class_docstr: Wrap everything up into a window for the pylab interface
class_docstr_tok: ["Wrap","everything","up","into","a","window","for","the","pylab","interface"]
code: def __init__(self, canvas, num):
      FigureManagerBase.__init__(self, canvas, num)
      title = "Figure %d" % num
      _macosx.FigureManager.__init__(self, canvas, title)
      if rcParams["toolbar"] == "toolbar2":
          self.toolbar = NavigationToolbar2Mac(canvas)
      else:
          self.toolbar = None
      if self.toolbar is not None:
          self.toolbar.update()
  
      def notify_axes_change(fig):
          "this will be called whenever the current axes is changed"
          if self.toolbar != None:
              self.toolbar.update()
  
      self.canvas.figure.add_axobserver(notify_axes_change)
  
      if matplotlib.is_interactive():
          self.show()
          self.canvas.draw_idle()
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import os
  from matplotlib._pylab_helpers import Gcf
  from matplotlib.backend_bases import _Backend, FigureCanvasBase, FigureManagerBase, NavigationToolbar2, TimerBase
  from matplotlib.figure import Figure
  from matplotlib import rcParams
  from matplotlib.widgets import SubplotTool
  import matplotlib
  from matplotlib.backends import _macosx
  from .backend_agg import FigureCanvasAgg
label_desc: Use image node_id 1 to create a new FigureManagerMac object from inherited base classes: _macosx, FigureManagerBase with example: obj = FigureManagerMac(canvas, num)