def on_button_clear(self, evt):
    if self.subframe_opened:
        self.subframe.Close()
self.figure.set_canvas(self.figurecanvas)
self.axe.clear()
self.figurecanvas.draw()
matplotlib: how to refresh figure.canvas