class_docstr: The canvas the figure renders into.  Calls the draw and print fig
  methods, creates the renderers, etc...
  
  Note GUI templates will want to connect events for button presses,
  mouse movements and key presses to functions that call the base
  class methods button_press_event, button_release_event,
  motion_notify_event, key_press_event, and key_release_event.  See,
  e.g., backend_gtk.py, backend_wx.py and backend_tkagg.py
  
  Attributes
  ----------
  figure : `matplotlib.figure.Figure`
      A high-level Figure instance
docstr: Write out format foo.  The dpi, facecolor and edgecolor are restored
  to their original values after this call, so you don't need to
  save and restore them.
docstr_tok: ["Write","out","format","foo",".","The","dpi",",","facecolor","and","edgecolor","are","restored","to","their","original","values","after","this","call",",","so","you","do","n't","need","to","save","and","restore","them","."]
code: def print_foo(self, filename, *args, **kwargs):
      """
      Write out format foo.  The dpi, facecolor and edgecolor are restored
      to their original values after this call, so you don't need to
      save and restore them.
      """
      pass
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  from matplotlib._pylab_helpers import Gcf
  from matplotlib.backend_bases import FigureCanvasBase, FigureManagerBase, GraphicsContextBase, RendererBase
  from matplotlib.figure import Figure
label_desc: Use image node_id 2 for calling the FigureCanvasTemplate obj's underlying member method code with example usage: obj.print_foo(filename) without return types