code: def __init__(self, figure):
      FigureCanvasBase.__init__(self, figure)
      if (
          self.__class__
          == matplotlib.backends.backend_gdk.FigureCanvasGDK
      ):
          warn_deprecated(
              "2.0",
              message="The GDK backend is "
              "deprecated. It is untested, known to be "
              "broken and will be removed in Matplotlib 3.0. "
              "Use the Agg backend instead. "
              "See Matplotlib usage FAQ for"
              " more info on backends.",
              alternative="Agg",
          )
      self._renderer_init()
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  import warnings
  import gobject
  import gtk
  import pango
  import numpy
  import matplotlib
  from matplotlib import rcParams
  from matplotlib._pylab_helpers import Gcf
  from matplotlib.backend_bases import _Backend, FigureCanvasBase, FigureManagerBase, GraphicsContextBase, RendererBase
  from matplotlib.cbook import warn_deprecated
  from matplotlib.mathtext import MathTextParser
  from matplotlib.transforms import Affine2D
  from matplotlib.backends._backend_gdk import pixbuf_get_pixels_array
label_desc: Use image node_id 1 to create a new FigureCanvasGDK object from inherited base classes: FigureCanvasBase with example: obj = FigureCanvasGDK(figure)