def __add_toolbar(self): """add toolbar""" self.toolbar = NavigationToolbar2WxAgg(self.canvas) self.toolbar.Realize() self.toolbar.update() return
def _makeFigureCanvas(self): """Build figure canvas""" self.figure = Figure() self.canvas = FigureCanvas(self, wx.NewIdRef(), self.figure) self.axes = self.figure.gca() self.axes.set_aspect('equal') self.toolbar = NavigationToolbar2WxAgg(self.canvas) self.toolbar.Realize() self.toolbar.update() return