def METHOD_NAME(self):
    import platform
    if platform.system() == 'Darwin':
        from MAVProxy.modules.lib.MacOS import backend_wxagg
        FigCanvas = backend_wxagg.FigureCanvasWxAgg
    else:
        from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigCanvas
    self.panel = wx.Panel(self)
    self.init_plot()
    self.canvas = FigCanvas(self.panel, -1, self.fig)
    self.close_button = wx.Button(self.panel, -1, "Close")
    self.Bind(wx.EVT_BUTTON, self.on_close_button, self.close_button)
    self.pause_button = wx.Button(self.panel, -1, "Pause")
    self.Bind(wx.EVT_BUTTON, self.on_pause_button, self.pause_button)
    self.Bind(wx.EVT_UPDATE_UI, self.on_update_pause_button, self.pause_button)
    self.hbox1 = wx.BoxSizer(wx.HORIZONTAL)
    self.hbox1.Add(self.close_button, border=5, flag=wx.ALL | wx.ALIGN_CENTER_VERTICAL)
    self.hbox1.AddSpacer(1)
    self.hbox1.Add(self.pause_button, border=5, flag=wx.ALL | wx.ALIGN_CENTER_VERTICAL)
    self.vbox = wx.BoxSizer(wx.VERTICAL)
    self.vbox.Add(self.canvas, 1, flag=wx.LEFT | wx.TOP | wx.GROW)
    self.vbox.Add(self.hbox1, 0, flag=wx.ALIGN_LEFT | wx.TOP)
    self.panel.SetSizer(self.vbox)
    self.vbox.Fit(self)