docstr: Render the figure and update the macosx canvas.
docstr_tok: ["Render","the","figure","and","update","the","macosx","canvas","."]
code: def draw(self):
      """Render the figure and update the macosx canvas."""
      # The renderer draw is done here; delaying causes problems with code
      # that uses the result of the draw() to update plot elements.
      if self._is_drawing:
          return
      with cbook._setattr_cm(self, _is_drawing=True):
          super().draw()
      self.update()
  
imports: import os
  import matplotlib
  from matplotlib import _api, cbook
  from matplotlib._pylab_helpers import Gcf
  from .None import _macosx
  from .backend_agg import FigureCanvasAgg
  from matplotlib.backend_bases import _Backend, FigureCanvasBase, FigureManagerBase, NavigationToolbar2, ResizeEvent, TimerBase, _allow_interrupt
label_desc: Use image node_id 2 for calling the FigureCanvasMac obj's underlying member method code with example usage: obj.draw() without return types