class_docstr: The FigureCanvas contains the figure and does event handling.
  
  In the wxPython backend, it is derived from wxPanel, and (usually) lives
  inside a frame instantiated by a FigureManagerWx. The parent window
  probably implements a wxSizer to control the displayed control size - but
  we give a hint as to our preferred minimum size.
class_docstr_tok: ["The","FigureCanvas","contains","the","figure","and","does","event","handling",".","In","the","wxPython","backend",",","it","is","derived","from","wxPanel",",","and","(","usually",")","lives","inside","a","frame","instantiated","by","a","FigureManagerWx",".","The","parent","window","probably","implements","a","wxSizer","to","control","the","displayed","control","size","-","but","we","give","a","hint","as","to","our","preferred","minimum","size","."]
code: def __init__(self, parent, id, figure):
      # _FigureCanvasWxBase should be fixed to have the same signature as
      # every other FigureCanvas and use cooperative inheritance, but in the
      # meantime the following will make do.
      _FigureCanvasWxBase.__init__(self, parent, id, figure)
      FigureCanvasCairo.__init__(self, figure)
      self._renderer = RendererCairo(self.figure.dpi)
  
file_path: catboost/contrib/python/matplotlib/py2/matplotlib/backends/backend_wxcairo.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  import wx
  from .backend_cairo import cairo, FigureCanvasCairo, RendererCairo
  from .backend_wx import _BackendWx, _FigureCanvasWxBase, FigureFrameWx, NavigationToolbar2Wx
  import wx.lib.wxcairo
label_desc: Use image node_id 1 to create a new FigureCanvasWxCairo object from inherited base classes: _FigureCanvasWxBase, FigureCanvasCairo with example: obj = FigureCanvasWxCairo(parent, id, figure)