def __init__(self, bitmap, dpi):
        """
        Initialise a wxWindows renderer instance.
        """
        RendererBase.__init__(self)
        DEBUG_MSG("__init__()", 1, self)
        if wx.VERSION_STRING < "2.8":
            raise RuntimeError("matplotlib no longer supports wxPython < 2.8 for the Wx backend.\nYou may, however, use the WxAgg backend.")
        self.width  = bitmap.GetWidth()
        self.height = bitmap.GetHeight()
        self.bitmap = bitmap
        self.fontd = {}
        self.dpi = dpi
        self.gc = None
def __init__ ( self , bitmap , dpi ) : RendererBase . __init__ ( self ) DEBUG_MSG ( "__init__()" , 1 , self ) if wx . VERSION_STRING < "2.8" : raise RuntimeError ( "matplotlib no longer supports wxPython < 2.8 for the Wx backend.\nYou may, however, use the WxAgg backend." ) self . width = bitmap . GetWidth ( ) self . height = bitmap . GetHeight ( ) self . bitmap = bitmap self . fontd = { } self . dpi = dpi self . gc = None
Initialise a wxWindows renderer instance.